Joined January 2014
·
Posted to
PHP - Convert mixed array & objects recursively
over 1 year
ago
I really like the recursive logic using magic constants! Bonus points for not using a loop - array_map :)
I really like the recursive logic using magic constants! Bonus points for not using a loop - array_map :)
You can also use python to start a simple webserver also.
Mac:
Navigate to the folder to use and enter:
python -m SimpleHTTPServer 8000
The number at the end is the port to use, open your browser and visit http://localhost:8000 You can use the default of port 80 if you wish and remove the port number entirely.