Hi guys, just need your tiny help. I'm learning as you can see. The question says: Create a script to check if the value "Sydney" is stored in the following array (hint: use function: in_array) $cities = array("New York", "London", "Sydney", "Paris", "Brisbane") (Note: you must print the ending result)
This is my code:
<?php
$cities = array("New York", "London", "Sydney", "Paris", "Brisbane")
if (in_array("Sydney", $cities)) {
echo "Yes, Sydney is stored!";
}
?>
I cant fix the problem? Your help would be lovely.
Thanks!