Answer the question
In order to leave comments, you need to log in
How to sort by folders in the repository itself?
Uploaded the project to the repository. Time passed and I sorted the project into folders on the local machine. When I do a git push in the repository on github, there are no folders, and the new files are simply thrown into the heap. How do I get the same kind of repository as I have on my local machine?
Answer the question
In order to leave comments, you need to log in
Because there is a StdClass and not an array nested, then like this:
$object = $array[0];
$array[0] = (object)[
'name' => $object->name,
'link' => '/'
];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question