Re: [PHP] Re: stripping first comma off and everything after
Troy Oltmanns wrote: http://php.net/manual/en/function.split.php I haven't tested for efficiency but splitting it will be great for assigning it easily into an array. Explode does the same thing without the overhead of a regular expression engine. But the OP didn't want the rest :) Cheers, Rob. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: stripping first comma off and everything after
http://php.net/manual/en/function.split.php I haven't tested for efficiency but splitting it will be great for assigning it easily into an array. On Fri, Jun 18, 2010 at 7:42 PM, Robert Cummings wrote: > shiplu wrote: > >> I'll use, >> >> list($data) = explode(",",$entries[$i]["dn"]); >> >> > It's probably the least efficient method. > > > Cheers, > Rob. > -- > E-Mail Disclaimer: Information contained in this message and any > attached documents is considered confidential and legally protected. > This message is intended solely for the addressee(s). Disclosure, > copying, and distribution are prohibited unless authorized. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
Re: [PHP] Re: stripping first comma off and everything after
shiplu wrote: I'll use, list($data) = explode(",",$entries[$i]["dn"]); It's probably the least efficient method. Cheers, Rob. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: stripping first comma off and everything after
I'll use, list($data) = explode(",",$entries[$i]["dn"]); Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php