Hi, You just save my life :) I was having lots of problems going through a JSON array multiple levels and this video helped me to understand how to solve my problem!
freaking awesome!!!!....might say i was running into this problem alot where the return data was in different arrays of multidimension. Was really looking for a way to have the data returned as a single array so i can loop through each one or compare with another array. As a junior developer i cant thank you enough
The only example I could think of was the flattening of some sort of message bag that holds lots of different messages for all keys. e.g. for validation errors, they may be under different keys (username field might have two errors, email might have one). You could then implement an all() method to just grab all errors regardless of keys. This video originally stemmed from the use of the latter method in Violin, which is the validation package I maintain on GitHub. Check it out and you'll see where it's used: github.com/alexgarrett/violin
I am wondering if you can help me with something. I used the uploading system you said and edited so that it only works with image extensions, now is the problem that I can still mask a PHP file as a JPEG, I know you can find this out with exif stuff, but I can't figure out how. Can you make a tutorial about that? I would like to see it pretty soon, since I am going to probably use it for school stuff.
ua-cam.com/video/2hKnJec0qGw/v-deo.html
The best of php recursion tutorials in a whole page of youtube search results!
Hi, You just save my life :) I was having lots of problems going through a JSON array multiple levels and this video helped me to understand how to solve my problem!
freaking awesome!!!!....might say i was running into this problem alot where the return data was in different arrays of multidimension. Was really looking for a way to have the data returned as a single array so i can loop through each one or compare with another array. As a junior developer i cant thank you enough
Great tutorial! Nice and quick and very informative. Thank you.
Please have you link repo for this? This is really great and awesome! :)) Thanks
Nice useful thing learned today. Thank you.
Excellent to hear!
As a junior developer, when might this technique be useful?
The only example I could think of was the flattening of some sort of message bag that holds lots of different messages for all keys. e.g. for validation errors, they may be under different keys (username field might have two errors, email might have one). You could then implement an all() method to just grab all errors regardless of keys. This video originally stemmed from the use of the latter method in Violin, which is the validation package I maintain on GitHub. Check it out and you'll see where it's used: github.com/alexgarrett/violin
very useful tutorial!!!
Thanks, glad you found it helpful.
Very Good Tutorial, One question: what is the font and the colorscheme are you using in sublime text?
Thanks. Theme is Mac Classic.
Thank you; what about the font? :)
Abdel Ouery I guess it's Consolas, if it still have relevance
7:31 what would be if you didn’t use “continue”
thank ou man, ou safe my life, o como se diga jajaja, saludos desde chile!!!!
can u try to use these on websites, i have difficulties..
What can we do instead of continue
I am wondering if you can help me with something.
I used the uploading system you said and edited so that it only works with image extensions, now is the problem that I can still mask a PHP file as a JPEG, I know you can find this out with exif stuff, but I can't figure out how.
Can you make a tutorial about that?
I would like to see it pretty soon, since I am going to probably use it for school stuff.
If I have understood this correctly, inside the image.php (example filename) file masking the image something along the lines of:
Hi... I can see you have changed your server from localhost to tutorial.dev:8000. How did you do that?
you can use something like Laravel Valet to create localhost domain names like http(s)://foldername.dev or .app :)
Nice tut Alex !
But please, don't use "continue" to this type of loop !
Just add "else" to your "if" statement to ignore if its not an array
tekreme73 why not? nothing's wrong with that.
I don't like using if else where it's not necessary.
***** But it could be better and friendly to use "else". Instead of using this ugly "continue" thing
Std library of PHP is a whole lot of confusion and mess.