These are GREAT!! I'm sharing this with my friends, you might want to rename this and the next video though, this one should probably be 79, and 79 should be 78.
I find one of the main issues in learning multiple languages is knowing when a standard function creates an array of data or another form of data. It makes you have to memorize so much!
Awesome man, thanks! I'm trying to make an online poker hand reviewer from a downloaded hand history text file and this is just what I needed. Gonna check out some other videos too. Peace and good luck.
How about not counting at all and instead using a string variable "s" on which you concatenate everything in the loop, then once the loop is done, remove the excess comma and maybe whitespace, then echo "s"?
Instead of initializing $count to 1, you can increment $count before the if condition inside the foreach loop. Same effect, but some what more logical since 0 names have been cycled through before the loop begins.
Gosh, why isn't this stuff working for me?????? Only the form opens up, but no file is created or written into and my code is one by line the same as Alex's!!!
When I echo out I get the word "Array" before the first name, which is replaced by a "1" when I do $count = 1. I don't know what I'm doing wrong to get that. The $count business seems a long winded way of removing a final comma
I paused the video and figure out the problem like this: if(($count + 1) < $readin_count){ echo ', '; } Which is the same thing but simply changing the variable to 1 is definitly the beter way to do this.
whuhahaha i tried to scroll the scrollbar of your video to look at your code below... am i the only one trying that by accident or do you people recognise this? :) :) :)