Jump to content

[SOLVED] General Questions


clanstyles

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.