hi guys, i've two array 3d $data and $array_bold, then i want to bold value $data be based value $array_bold, how i can do this???
<?php
$data = array(
array(
'0'=>array(
'0'=>'chelsea everton villa liverpool',
),
array(
'0'=>'milan inter juventus napoli',
),
),
'1'=>array(
array(
'1'=>'madrid barcelona altetico getafe',
),
array(
'1'=>'milan inter juventus napoli',
)
)
);
var_dump($data);
$array_bold = array(
array(
'0'=>array(
'0'=>'chelsea everton',
),
array(
'0'=>'juventus napoli',
),
),
'1'=>array(
array(
'1'=>'barcelona altetico',
),
array(
'1'=>'inter juventus',
)
)
);
var_dump($array_bold);
?>
so, the result like this:
array(2) { [0]=> array(2) { [0]=> array(1) { [0]=> string(31) "<b>chelsea everton<b/> villa liverpool" } [1]=> array(1) { [0]=> string(27) "milan inter <b>juventus napoli<b/>" } } [1]=> array(2) { [0]=> array(1) { [0]=> string(32) "madrid <b>barcelona altetico<b/> getafe" } [1]=> array(1) { [0]=> string(27) "milan <b>inter juventus<b/> napoli" } } }
help me :(