clanstyles Posted July 5, 2007 Share Posted July 5, 2007 1) Where can I learn up on foreach statemnts? Also, those are for php 5.0 and up right? 2) Where can I get a list of mysql commands? Like I know SELECT INSERT UPDATE DELETE but ive seen a lot of stuff ive never even heard of before. Like GROUP () and sum() and werid weird stuff. But i can use those a lot and want to see what else there is. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/58612-solved-general-questions/ Share on other sites More sharing options...
soycharliente Posted July 5, 2007 Share Posted July 5, 2007 http://us2.php.net/foreach http://www.pantz.org/database/mysql/mysqlcommands.shtml Link to comment https://forums.phpfreaks.com/topic/58612-solved-general-questions/#findComment-290720 Share on other sites More sharing options...
john010117 Posted July 5, 2007 Share Posted July 5, 2007 foreach() PHP MySQL Ever heard of Google? Link to comment https://forums.phpfreaks.com/topic/58612-solved-general-questions/#findComment-290721 Share on other sites More sharing options...
soycharliente Posted July 5, 2007 Share Posted July 5, 2007 Your sarcasm is a little obnoxious. And your link to Google is fairly rude. There is a polite way to say the same thing. Link to comment https://forums.phpfreaks.com/topic/58612-solved-general-questions/#findComment-290722 Share on other sites More sharing options...
cooldude832 Posted July 5, 2007 Share Posted July 5, 2007 a watered down version of foreach is basically you can apply or use a whole array for something like lets say you want to add a continuous +1 to each value of an array you can say <?php $i = 1; foreach($myarray as $value) //$value is the standard foreach placeholder var { $value+$i; echo $value."<br/>"; $i++; } ?> its most often used for echoing o complex sorts although you can write sort functions most of the time its easier to sort via a foreach type function Link to comment https://forums.phpfreaks.com/topic/58612-solved-general-questions/#findComment-290724 Share on other sites More sharing options...
clanstyles Posted July 5, 2007 Author Share Posted July 5, 2007 thx guys. Link to comment https://forums.phpfreaks.com/topic/58612-solved-general-questions/#findComment-290725 Share on other sites More sharing options...
cluce Posted July 5, 2007 Share Posted July 5, 2007 also you may want to utilize this website too. I used all the others and I like this one the best. http://www.w3schools.com/php/default.asp Link to comment https://forums.phpfreaks.com/topic/58612-solved-general-questions/#findComment-290726 Share on other sites More sharing options...
cooldude832 Posted July 5, 2007 Share Posted July 5, 2007 Yes that google comment is a little inapproperate this forumn is made to help people not discourage so please clean up your act or don't use this forumn Link to comment https://forums.phpfreaks.com/topic/58612-solved-general-questions/#findComment-290728 Share on other sites More sharing options...
GingerRobot Posted July 5, 2007 Share Posted July 5, 2007 1) Where can I learn up on foreach statemnts? Also, those are for php 5.0 and up right? To answer your question foreach was introduced in php 4. Link to comment https://forums.phpfreaks.com/topic/58612-solved-general-questions/#findComment-290740 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.