sscanf() ?
Posted: Sat Feb 09, 2008 12:05 am
I'm not an expert on the whole behaviour of printf() and friends, but should I give up trying to achieve this?
$value is always NULL and $type is the entire string, including the colon 
I'm currently using substr() but spotted this cool looking function in the manual. Will it always be too greedy?
Code: Select all
list ($type, $value) = sscanf("string:foobar", "%s:%s");I'm currently using substr() but spotted this cool looking function in the manual. Will it always be too greedy?