- print_r: documentation ( source)
- parse_ini_string: documentation ( source)
- http_build_query: documentation ( source)
- sprintf: documentation ( source)
<?php
$t = http_build_query(
array(
'criteria' => sprintf('(customerId=="%d")', 6777777),
'text' => 'test',
'audio' => 'won',
'badge' => 123,
)
);
//echo $t;
$str ='OK=4:FAIL=0';
print_r(parse_ini_string($str));