Don’t believe this is possible in a single operation, but this should do the trick:
list($k, $v) = explode(' ', $strVal);
$result[ $k ] = $v;
More Related Contents:
- how to get client’s IP address in sql database [closed]
- Cleansing User Passwords
- Working with large numbers in PHP
- Remove non-utf8 characters from string
- Suppress error with @ operator in PHP
- PHP PDOException: “SQLSTATE[HY093]: Invalid parameter number”
- Nginx location configuration (subfolders)
- Facebook Graph API, how to get users email?
- Sorting a multidimensional array in PHP? [duplicate]
- How to group a multidimensional array by a particular subarray value?
- PHP x86 How to get filesize of > 2 GB file without external program?
- How to write specific CSS for mozilla, chrome and IE
- How to find the date of a day of the week from a date using PHP?
- How to add an ORDER BY clause using CodeIgniter’s Active Record methods?
- iPhone emoticons insert into MySQL but become blank value
- Can I call a Model from a View?
- Inserting into MySQL from PHP (jQuery/AJAX)
- When do I use static variables/functions in php?
- Bind Param with array of parameters
- Upload multiple files in CodeIgniter
- Use keyword in functions – PHP [duplicate]
- regular expression and forward slash
- Can anyone get access to my PHP source code?
- Installing PHPUnit via PEAR
- Remove zero values from a PHP array
- What is the MM/DD/YYYY regular expression and how do I use it in php?
- Why I am getting error when getting booking from database? [duplicate]
- Extending Sonata User Bundle and adding new fields [closed]
- Extending session timeout in PHP via the .htaccess
- Finding @mentions in string