Fatal error: Call to undefined function: lenght()
Please I need your help please
Code: Select all
<form action="explode.php">
Enter a String:<input type="text" name="strn"><br>
Enter the delimiter:<input type="text" name="delimiter"><br><br>
<input type="submit" value="Split!">
</form>************* explode.php ********************
Code: Select all
<?php
$string = $_GETї"strn"];
$delimiter = $_GETї"delimiter"];
$arrayofstring = explode ($delimiter,$string);
for ($i=0;$i<lenght($arrayofstring);$i++)
{
echo $arrayofstringї$i].'<br>';
}
?>