in php used for one typ website
PHP is an Open Source Scripting Language. We can create Web Pages and Web Applications using PHP.
we cant use set timeout function in php because it is of java script function
Below is a simple example of how you could return a value in a PHP function. <?php function returnme($value) { return $value; } echo returnme('hello'); // outputs: hello ?>
function function_name() { .................... }
The eval() function evaluates a string as PHP code. http://us.php.net/manual/en/function.eval.php
A simple function call <html> <body> <?php if(isset($_POST['button'])) { setValue(); // Function is called } function setValue() { echo "<br>The button property to call PHP function works"; // Your code here } ?> <input type="submit" name="button" onclick=<?php $_SERVER['PHP_SELF']; ?> /> </body> </head>
Zend optimizers can help PHP applications by making the PHP application easier to manipulate through the Zend Opimizer. They make great products for anyone trying to make a living at home.
chdir() PHP function helps in changing the current directory.
It gets options from the command line argument list. It can be used in PHP 4.3 and above, including PHP 5.
Java is primarily used to create desktop applications/software while PHP is used to make web applications/websites.Ofcourse both support website/web and desktop applications but you would find very few who interchange those two.Java is complex while PHP is a bit simpler.Java has a massive library while PHP has a small but quite useful library.Generally speaking JAVA developer earns more then PHP counterpart
With a call to the function func_num_args().
header() is a php function used to modify and set HTTP headers sent to the browser.