Ask a Question related to Macromedia ColdFusion, Design and Development.
-
Adam Cameron #1
Re: String - Cut off trailing characters
> Adam, the following:
>
> sFilePath = listDeletaAt(sPath, listLast(sPath, "/"), "/");
>
> won't work because ListLAst() returns the value of the last element,
Sorry, yes, you're quite right. I was amidst hering my flatmate's
woes-of-the-day whilst trying to get away to the pub, and badly cutting and
pasting my own code.
listLen(), not listLast(), as you say.
--
Adam
Adam Cameron Guest
-
how do i test a string has certain characters?
If i have entered text into an input text box, say for an email address. How do i check whether that text has certain characters in it, such as '@' ?... -
Trunc characters off end of string.
Coming from Action/Java-Script and delving into lingo, I'm surprised at how I can't seem to find a way to do this! Here's the dillema: I am... -
print the first 20 characters of a string
Hi, Is there a function in php that makes it possible to limit the output of a text-string; meaning only print the first e.g. 20 characters of... -
Counting characters in a string
I have several isbn's that are eather 10 or 12 charcters long. I need to insert a dot . after the fifth character if it is 10 long, and after the... -
change some characters of one String
Hello Whit this: <?php echo str_replace ( "\r", "<br/>", $arr) ; ?> i replace the \r with the <br/> but i must analyze one String and see if...



Reply With Quote

