Home Blog Page 48

For Loop : PHP Manual

for for loops are the most complex loops in PHP. They behave like their C counterparts. The syntax of a for loop is: for (expr1; expr2; expr3) ...

control-structures.while

while while loops are the simplest type of loop in PHP. They behave just like their C counterparts. The basic form of a while statement is: while (expr) ...

control-structures.do.while

do-while do-while loops are very similar to while loops, except the truth expression is checked at the end of each iteration instead of in the beginning. The main...

Search and replace on a string

This example uses the str_replace function to replace some text in a string with another piece of text. <?php //using str_replace in php //our message $msg = "this...

Display a pages Meta Tags

This uses the get_meta_tags function to display the meta tags of a given page . <?php $searchmeta = get_meta_tags("index.htm"); echo ($searchmeta); echo ("<br>"); echo ($searchmeta); ?>

Get Users IP address

Get users IP address <?php echo $REMOTE_ADDR; ?>

Do While loop example

This is a Do while loop example in PHP, similar to the while loop earlier <?php $i=0; do { $i++; echo "$i<br>"; } while ($i<5); ?>

While loop

This is the most basic example of a While loop in PHP <?php $i=1; while($i<=5) { echo "$i<br>"; $i++; } ?>

PHP Tutorial // For and Foreach

lifeg0eson666 asked: [youtube https://www.youtube.com/watch?v=c506CrIn88E&hl=en]This is a PHP tutorial regarding the For and Foreach functions.
SEO Powered by Platinum SEO from Techblissonline