Hi I'm quite a newbie to PHP so just wondering if you could lend a hand. Sorry if this is is in the wrong place as well.
But anyway,
I have a string:
"variable1:variable2:variable3"
I am just wondering how I could split this up and extract each variable from this?
Many thanks in advance!
Extracting from string
Moderator: General Moderators
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: Extracting from string
Code: Select all
explode()mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Re: Extracting from string
list() could also be useful.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.