Re: Parsing Strings
| From: | Nathan Rixham | Date: | Sat, 06 Dec 2008 19:37:14 +0000 |
| Subject: | Re: Parsing Strings | ||
| References: | 1 2 3 | Groups: | php.general php.general |
| Request: | Send a blank email to php-general+get-284241@lists.php.net to get a copy of this message | ||
tedd wrote:
At 4:18 PM -0800 12/5/08, Jason Todd Slack-Moehrle wrote:this is wrong on so many levels, but his name indicates that he's more of a delegator than a doer :pHow might I also parse and address like: SCOTTSDALE, AZ 85254 It has a comma and a space -Jason On Dec 5, 2008, at 4:02 PM, Jason Todd Slack-Moehrle wrote:-Jason: This is pretty basic stuff -- read the manuals about strings: http://www.php.net/manual/en/book.strings.php If you have shown that you've spent time reading and then have a problem, please post your question. But don't expect us to do your homework for you. Cheers, teddOK, making good learning progress today. I have a string that is: Jason Slack and I want it broken at the space so i get Jason and then Slack I am looking at parse_str, but I dont get how to do it with a space. The example is using []=. Then I want to assign like: $fname = "Jason"; $lname = "Slack"; Any ideas? -Jason