Code fails when array contains a name with an umlaut


#1



The code below doesn't get accepted by the parser because it contains an umlaut in one of the strings (ö)


 <?php
      $friends = array("Sören", "Erik", "Ingmar");
?>

When you replace the code by

 <?php
      $friends = array("Soeren", "Erik", "Ingmar");
?>

it works


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.