my php in array fonction work in w3 school but not locally
You need a local server to run php. There’s xampp and wamp for the PC and on the mac there Mamp this very customizable (this is what I use).
Sorry to hear about that. Thanks for letting us know.