Jump to content

cae_prince

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Female

cae_prince's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, I'm new to PHP and getting started on Array Functions... Whenever I try to execute the array_intersect_key() function <?php $array1 = array('blue' => 1, 'red' => 2, 'green' => 3, 'purple' => 4); $array2 = array('green' => 5, 'blue' => 6, 'yellow' => 7, 'cyan' => ; var_dump(array_intersect_key($array1, $array2)); ?> I get this error: Fatal error: Call to undefined function array_intersect_key() in D:\Programmers\Caroline\array_pract3.php on line... Can someone tell me why it is so - even with array_intersect_key being a valid PHP function? ??? TYIA, Caroline
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.