Блоги
- 1 ответ
- 0 вопросов
0
Вклад в тег
<?
$str = 'string|name1,value1|name2,value2|name3,value3|';
preg_match_all('#\b(\w+)\b#', $str, $matches);
var_dump($matches);
?>
[0] => Array
(
[0] => string
[1] => name1
[2] => value1
[3] => name2
[4] => value2
[5] => name3
[6] => value3
)