Can you post the javascript that's causing the problem? And, yes, it's IE, what did you expect... :-)

Ken

At 05:10 PM 12/21/2012, Tedd Sperling wrote:
On Dec 21, 2012, at 5:05 PM, Ken Robinson <kenrb...@rbnsn.com> wrote
> A much easier way to do this would be to use a temporary array and then explode:
>
> $tmp = array();
> while($row = mysql_fetch_array($result)) // pulling stuff from a database
>                {
>                $tmp[] = $row['category'];
>                }
>
> $topic = explode('~',$tmp); // put the delimiter between each entry
>        echo($topic);   // this result is used in an AJAX script
>
>
> No more worrying about whether the delimiter is the last character.
>
> Ken

Ken:

Slick -- I like it.

But, the question remains -- if you make the last character in a string a '' (or null), then what's the problem with doing that?

Cheers,

tedd

_____________________
t...@sperling.com
http://sperling.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to