Re: Re: Manipulating strings

From: Date: Wed, 08 Oct 2008 18:37:31 +0000
Subject: Re: Re: Manipulating strings
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-281602@lists.php.net to get a copy of this message
<?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 ?>

« previous php.general (#281602) next »