i have two arrays and then tried to get value array from matching both. it's impossible? let's check this out my code
$text = array(
"I had locked the door before I left my home",
"I was late. The train had left",
"She had already found the key, before I broke the door",
"n..."
);
$inline = array("locked","found");
$output = ?
print_r($output);
// i want a $output like this
// array(
// [0] => "I had locked the door before I left my home"
// [2] => "She had already found the key, before I broke the door"
// );
how can i do this? thanks :)
The birds flocked together.too? Or do you want to match only whole words? This is a critical decision when selecting the best method for your project.