So I\'m trying to learn how to pass arrays through a function, so that I can get around PHP\'s inability to return multiple values. Haven\'t been able to get anything to work so
Another way is:
$NAME = "John"; $EMAIL = "John@gmail.com"; $USERNAME = "John123"; $PASSWORD = "1234"; $array = Array ("$NAME","$EMAIL","$USERNAME","$PASSWORD"); function getAndReturn (Array $array){ return $array; } print_r(getAndReturn($array));