Re: Re: Manipulating strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<?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
?>

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux