RE: [PHP] A way to break up the string????

From: Date: Wed, 29 Jan 2003 22:13:10 +0000
Subject: RE: [PHP] A way to break up the string????
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-133556@lists.php.net to get a copy of this message
G'day Scott > Just curious, is there a PHP function that will break up the > string for us? I'm not specifically having a go at you but more observing that some people use this list as a first line of question rather than doing some work themselves. Assuming that I didn't already know what function provides this capability I could do the following: 1. Go to the online manual at http://www.php.net/manual/ 2. Since my problem deals with strings I would then go to the string functions page of the function reference section of the manual. 3. I would then look through the various functions listed here, each of which includes a short description of what the function does. 4. I would notice that within the first dozen entries there's a function called explode with a description of "Split a string by string". 5. I would guess that this explode function might be fairly close to what I'm looking for and load it's page. 6. I would glance at some of the user contributed notes and see examples of using explode and even some pitfalls to be aware of in it's use. At this point, my question is answered and I've managed to find out things in the process. If I've been paying attention I've probably gained a small appreciation of a few other string related functions that I didn't know about and filed it away for future use too. Just a thought... CYA, Dave

« previous php.general (#133556) next »