on-internet
← Community

Transferring values using a PHP 5.1 list() statement

Stack Overflow ·

I am temporarily using PHP 5.1 on a Windows 10 platform. I have a series of scripts forming a complete accounts package. I am used to using a list() statement as follows: list ($mon, $day, $year) = get_inday("Input Receipt Date : ", "#FFFF00"); I then retrieve the data using this: $y = $_POST['year']; $m = $_POST['mon']; $d = $_POST['day']; This has always worked for me. I now want to extend the possibilities of the list to retrieve more values: list($mon1, $day1, $year1, $mon2, $day2, $year2, $mon3, $day3, $year3, $day4) = get3dates(); This is the code for the function get3dates() but it will

Comments

Sign in or sign up to comment and upvote.

No comments yet.