Skip to content

PHP Array for hard multilevel items

i have this array structure and i want to create other array structure with that: Each array item have a group of characteristics like: I need an array that have this values like Azul=>64GB=>Plastico 128GB=>Cristal if sub item repeats only write the children value Azul=>64GB=>Cristal Only adds …

using Laravel 7 Api routes

I’m trying to use simple laravel api for getting and sending requests, after define this api routes in api.php: and creating AuthController in app/http/controller/Api/v1 directory: i get 404 error on this link: how can i resolve this problem? Answer Routes in api.php are automatically prefixed with /api…

PHP: Storing arrays within an array seems to be creating copies

This is such a basic question, but I’m unable to find a clear answer anywhere. As I have understood it, storing an object in an array should store a reference, not a copy… so any changes you make to the object subsequently should be visible when you access the object via the array. When searching …