Posts

Showing posts from July, 2021

JQuery - setTimeout

set time out function.  setTimeout(function(){    alert("Hello");  }, 3000);

php formated Print statement

$num  =  5 ; $location  =  'tree' ; $format  =  'There are %d monkeys in the %s' ; echo  sprintf ( $format ,  $num ,  $location );

PHP Implode and explode

$array = array('lastname', 'email', 'phone');   $comma_separated = implode(",",$array);  echo $comma_separated; // lastname,email,phone   =================================================   $pizza = "piece1 piece2 piece3 piece4 piece5 piece6";   $pieces = explode(" ", $pizza);   echo $pieces[0]; // piece1 echo $pieces[1]; // piece2