I want to transfer the value of my array into my variables. My array contain 2 value, [0]Firstname [1]Lastname. i want to store it to
$fname = array[0] //firstname
$lname = array[1] //lastname
here's my code:
<?php
$str = "[email protected]";
$str = str_replace('@email.com', '', $str);
print_r ((explode(".",$str)), true);
?>