Hi
I don't know how to do this. How can I delete a word from my array.
$cheesecake = array("Apple Cheesecake", "Blueberry Cheesecake", "Strawberry Cheesecake", "Mango Cheesecake", "Raspberry Cheesecake");
I want to take out the Blueberry Cheesecake
from the array. How do I do that?
This is what I got so far:
<?php
$cheesecake = array("Apple Cheesecake", "Blueberry Cheesecake", "Strawberry Cheesecake", "Mango Cheesecake", "Raspberry Cheesecake");
$cake("Apple Cheesecake", "Blueberry Cheesecake", "Strawberry Cheesecake", "Mango Cheesecake", "Raspberry Cheesecake");
$blueberry = str_replace($cheesecake, $cake);
echo "I am going to eat an ".$cake. "<br />";
?>
There's an error and it said Function name must be a string
When I echo
it out it should said I am going to eat an Blueberry Cheesecake
Any Suggestions and explanation will help. I appreciate it. Thanks!