<?php
$array = array(
array(
'|174|September|2001|',
'Pengantar=Hello!!!!',
'Tema= Sami Mawon ',
'Kategori:e-humor 2001',
[...]
)
);
$values = array();
array_walk($array[0],function(&$item1, $key) use(&$values) {
if(preg_match('#[^=]=(.+)#',$item1,$match)){
$values[] = $match[1];
}
});
print_r($values);
- Output for 5.4.0 - 5.4.9
- Parse error: syntax error, unexpected '.', expecting ']' in /in/H8gg6 on line 8
Process exited with code 255. - Output for 5.3.0 - 5.3.19
- Parse error: syntax error, unexpected '[', expecting ')' in /in/H8gg6 on line 8
Process exited with code 255.
preferences:
167.93 ms | 1399 KiB | 37 Q