There have been so many rumors about the iPhone 5. Lets take a look.

For more details check out iPhone 5 Rumor Roundup @ mashable.

For more details check out iPhone 5 Rumor Roundup @ mashable.

$description = strip_tags($_POST['description']); echo $description;You can simply do this operation inline and avoid the extra memory consumption:
echo strip_tags($_POST['description']);
foreach ($userList as $user) {
$query = 'INSERT INTO users (first_name,last_name) VALUES("' . $user['first_name'] . '", "' . $user['last_name'] . '")';
mysql_query($query);
}
$userData = array();
foreach ($userList as $user) {
$userData[] = '("' . $user['first_name'] . '", "' . $user['last_name'] . '")';
}
$query = 'INSERT INTO users (first_name,last_name) VALUES' . implode(',', $userData);
mysql_query($query);
INSERT INTO users (first_name,last_name) VALUES("John", "Doe"),("Jane", "Doe")...
for ( $i=0; $i<count($myArray); ++$i ) // do something
$arraySize = count($myArray); for ( $i=0; $i<$arraySize; ++$i ) // do somethingSimilarly
$myConstString = "This is some constant text";
for ( $i=0; $i<$arraySize; ++$i )
{
echo trim(strtolower($myConstString));
// do something
}
Provided the above loop does not modify $myConstString, then the call to trim(strtolower($myConstString)) will always return the same value (in this instance, a string). You can move this function call to just before the loop, and store the return value in a temporary variable. if (strlen($foo) < 5) echo "Foo is too short";Instead use:
if (!isset($foo{5}))
echo "Foo is too short";
Calling isset() happens to be faster then strlen() because unlike strlen(), isset() is a language construct and not a function meaning that it's execution does not require function lookups and lowercase. This means you have virtually no overhead on top of the actual code that determines the string's length. <html> <head> <title>Demo Page</title> </head> <body> /* Server side script */ <?php echo "Hello world"; ?> /* end script */ </body> </html>