On Wed, 2008-10-08 at 11:37 -0700, Yeti wrote:
> <?php
> #let's say we got following string:
> $some_string = '<br />blah blah<br />blah blah<br />';
> var_dump(explode('<br />', $some_string));
> /* OUTPUT:
> array(4) {
>   [0]=>
>   string(0) ""
>   [1]=>
>   string(9) "blah blah"
>   [2]=>
>   string(9) "blah blah"
>   [3]=>
>   string(0) ""
> }
> */
> #So as you see index 0 and index 3 are empty strings. Keep that in mind
> ?>
> 
You could use trim() on it first. I believe that lets you take out the
delimiters at the ends of the string.


Ash
www.ashleysheridan.co.uk


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

Reply via email to