Answers for "what is php for"

PHP
6

what php can do

PHP can generate dynamic page content.
PHP can create, open, read, write, delete, and close files on the server.
PHP can collect form data.
PHP can send and receive cookies.
PHP can add, delete, modify data in your database.
PHP can be used to control user-access.
PHP can encrypt data and apply validation.
PHP used to send and receive E-Mails.
PHP can be used to integrate with other third party tools.
PHP can output images, PDF files, and even Flash movies. You can also output any text, such as XHTML and XML.
Posted by: Guest on November-09-2020
10

for loop php

<?php
	$fruits = ["apple", "banana", "orange"];
	for($i=0;$i<count($fruits);$i++){
    echo "Index of ".$i."= ".$fruits[$i]."<br>";
    }
  ?>
Posted by: Guest on December-28-2019
3

php for

<?php
/* example 1 */

for ($i = 1; $i <= 10; $i++) {
    echo $i;
}

/* example 2 */

for ($i = 1; ; $i++) {
    if ($i > 10) {
        break;
    }
    echo $i;
}

/* example 3 */

$i = 1;
for (; ; ) {
    if ($i > 10) {
        break;
    }
    echo $i;
    $i++;
}

/* example 4 */

for ($i = 1, $j = 0; $i <= 10; $j += $i, print $i, $i++);
?>
Posted by: Guest on April-23-2020
1

for i php

<?php
  
  for ($i = 1; $i <= 10; $i++) {
    echo $i;
  }
Posted by: Guest on January-26-2021
0

php for loop

for($i = 1; $i > 10; $i++){
  //show i value
	echo "Your Number Is :$i";
}
Posted by: Guest on September-03-2021

Browse Popular Code Answers by Language