|
Displaying 1 - 50 of about 5069 Related Tutorials.
|
PHP var_dump function
PHP var_dump Function
The PHP var_dump() function displays information about...;
PHP Var_dump Function Example 1:
<?php
$a=array(1,2,'c',true,array... and value.
General format of var_dump() in PHP is:
void var_dump(mixed  |
PHP User Defined Function
is:
function function_name([mixed $var,.....]){ PHP code}
mixed is the datatype...PHP User Defined Function
An user-defined function saves us from ...;?php
function add($first,$second)
{
return ($first+$second |
If function in PHP
If function in PHP Hi,
Provide me the example of If function in PHP.
Thanks
Hi,
If function is PHP is used to check for some condition and the execute a block of code.
He is an example of if() function in PHP |
|
|
PHP String Function
PHP String Function:
A string is nothing but a series of characters. Most... print these all.
PHP String Function Example:
<?php
$a="This
is a string";
echo $a."<br/>";
var_dump($a);
echo < |
PHP Boolean Data Types
converts.
Example of PHP Boolean Data Type :
<?php
$a=23;
var_dump ((boolean)($a));echo"<br/>";
$a=23.23;
var_dump ((boolean)($a));echo"<br/>";
$a=0.0;
var_dump ((boolean)($a));echo"< |
|
|
Check Date in PHP
that denotes the year.
Example
<?php
var_dump(checkdate(07,31,2009));
var_dump(checkdate(2,29,2009));
var_dump(checkdate(2,29,2008));
?>...
Check Date in PHP
The Checkdate()
The PHP Checkdate function is used |
PHP invoke Method
Method Example:
<?php
class A
{
public function
__invoke($var){
var_dump($var);
echo"<br/>";
}
}
$obj=new
A;
$obj(4...__invoke() Function in PHP:
PHP 5.3.0 has introduced so many new concepts, new |
php array length function
php array length function writing a php array length function |
call function in php
call function in php What is the call function in PHP please explain |
PHP Loop Function
PHP LOOP Function
In programming language a loop is a language construct which...;br/>";
var_dump($array);
echo "<br/><b>Individual... in
iterative(for, while, do-while) and recursive method(when a function |
variable function in php
variable function in php Can any one tell me how to write a variable function in PHP?
Go through the PHP Variable function tutorial ...
PHP Variable Function |
What is the microtime() Function PHP ?
What is the microtime() Function PHP ? Hi,
What is microtime() Function in PHP? What is the role of Microtime() Function in PHP. Please suggest me any online reference.
Thanks |
php error handling function
php error handling function Is there any library or function that can be used to handle errors in PHP |
Eval Function in PHP
Eval Function in PHP Hello PHP experts,
Please tell me about Eval() Function in PHP. How to use Eva() function in PHP?
Thanks
Hi,
The Eval() function is PHP is very handy. It allows to you store the PHP code |
post function php
post function php when should i use post function in PHP |
variable function in php
variable function in php Can any one tell me how to write a variable function in PHP |
array_merge function in php - PHP
array_merge function in php What is the best use of array_merge function in php? Hi Friend,
Please visit the following links:
http://www.roseindia.net/tutorial/php/phpbasics/PHP-Array-Merge-Recursive.html
http |
Array Sizeof Function PHP
Array Sizeof Function PHP Hi,
How to count the number of elements in an array using the PHP Array sizeof() function? Please provides me online help links or example of array sizedof() PHP.
Thanks |
PHP idate() Function
help related to PHP idate() Function. I waiting for your valuable suggestion.
Thanks,
Hi,
The idate() Function in PHP will returns a string... time if no timestamp is given.
Syntax of PHP idate() Function :...
int idate |
PHP Array Merge
;);
var_dump($array1);
$array2=array("This","is","second","array");
echo"<br/>";
var_dump...;;
var_dump($array3);
$var="This
is a variable";
$array3=array |
php timezone function
php timezone function how can i change the timezone using PHP |
PHP Array
;similar");
var_dump($array);
echo"var_dump()
is a function which...;are"
[2]=>
string(7) "similar"
}
var_dump() is a function...;similar");
var_dump($array);
echo"An
array with dissimilar |
php function call
php function call I have an function in error-status.php like this
function validateHostName($hostName)
{
if((strpbrk($hostName,'`~!@#$^&... to cal this function in my other page which is datetime.php how it is
posible |
PHP Array Count Values
;);
echo"Initially the values of \$array is:";
var_dump($array...'=>2);
echo"Initially the values of \$array is:";
var_dump($array...PHP Array Count Values
Sometimes we need to count the number |
What is the functionality of MD5 function in PHP?
What is the functionality of MD5 function in PHP? What is the functionality of MD5 function in PHP |
Eval () PHP Function, Example of Eval () PHP Function
PHP eval() Function
In this tutorial we will learn about the PHP eval() function. The php eval()
function can be used if you want to store the php command... eval() function:
The PHP eval() function evaluates the passed string parameter |
How to use the PHP filetype() Function
How to use the PHP filetype() Function Hi,
What is the use of filetype() Function in php programming. Can anyone give any online example of the PHP filetype() Function.
Thanks |
PHP basename() function, PHP basename function example
In this section we will learn about the basename() function of php
This example of basename() function in PHP
Description about PHP basename():
syntax for PHP basename()Function
string basename ( string |
PHP Remove Duplicate Values
is:</b><br/>";
var_dump($array);
echo"<br/><b>... of \$array is:</b><br/>";
var_dump($array);
echo"<br/><...;Initially
the values of \$array is:</b><br/>";
var_dump($array |
PHP Array Merge Recursive
PHP Array Merge Recursive
The PHP array_merge_recursive() function is same...;;
var_dump($array1);
$array2=array("c"=>"contemporary"...
the values of \$array2 is:</b><br/>";
var_dump($array2 |
PHP Array Replace Recursive
PHP Array Replace Recursive:
PHP provides array_replace_recursive() function...;Initially
the values of \$array1 is:</b><br/>";
var_dump... is:</b><br/>";
var_dump($array2);
$array3=array |
PHP file_get_contents() Function
PHP file_get_contents() Function Hi,
How do i read the content of file using PHP program? So kindly provide any example or online help reference for filegetcontents() Function in PHP. Please feel free to suggest.
Thanks |
PHP Array Replace
, PHP provides
array_replace() function to replace the values. array_replace... of \$array1 is:</b><br/>";
var_dump($array);
$repl1=array(1...;b>The
values of \$repl1 is:</b><br/>";
var_dump($repl1 |
PHP Instanceof Operator
.
Example:
<?php
class A
{
var
$var;
function
disp()
{
echo
"Inside the class";
}
}
$obj=new
A;
var_dump($obj
instanceof A);
?>
Output:
bool(true)
Example:
<?php
class A
{
var
$var |
The fgetcsv function example in PHP, fgetcsv php, fgetcsv in php
Examples of fgetcsv() function in php
Description
The PHP fgetcsv() function is used to parse the CVS file in PHP program. Here you will see how you... on failure and EOF.
Code for PHP fgetcsv() Function in PHP
<?php
$file1 |
feof() Function in php
Examples of the feof() function in PHP
Syntax on feof() function in PHP
bool feof ( $file_pointer )
It is used for checking the end of file of ... and then the loop will terminate
Code for feof() function in PHP
<?php |
How to Declare fflush() Function in PHP
How to Declare fflush() Function in PHP Hi,
Can someone give my any online example for write all the buffered data of an open file. Is it appropriate to use the PHP fflush() Function to develop this application? Please suggest |
PHP Array Search
PHP Array Search
In PHP, array_search() function performs a search ...;<br/>";
var_dump($array);
$key=13;
echo"<br/><b>...
the values of \$array is:</b><br/>";
var_dump($array);
$key |
PHP Variable Outside Function
PHP Variable Outside Function
In PHP Functions, a variable can be called... the example to understand how it works :
PHP Variable Outside Function Example 1... the above output on your screen or browser.
Example 2 :
<?php
function |
PHP Invoke Method
function
__invoke($var){
var_dump($var);
echo"<br/>"... or not </b><br/>";
var_dump(is_callable($obj));
?>
Output...__invoke():
PHP 5.3.0 has introduced lots of new methods, __invoke |
Sitemap PHP Tutorial
|
PHP Exception Handling |
PHP var_dump function
Advanced PHP... in PHP |
PHP date add function |
PHP
date_create |
PHP date_create_from_format function |
PHP
Date() Function |
PHP Date add 1 month |
PHP
Date |
PHP Array Sub String Search
;;
var_dump($array1);
$search="India";
echo"<br/><...PHP Array Search Sub-String
In PHP if we need to search a sub-string within an array then we can use
in_array() function. The format of in_array is much |
List out different arguments in PHP header function?
List out different arguments in PHP header function? List out different arguments in PHP header function |
PHP lstat() function and example
Syntax for PHP Istat() Function
array lstat
(file_name)
PHP Istat() Function states about the regular file and symbolic file information
PHP Istat() Function will returns the data in Array form
PHP Istat() Function |
php date function - Date Calendar
php date function Hi,
I am new to PHP. I am trying to get date from database. But, every time the date under 1970, it changes to 1970. Im...: 1960-12-02 (type is date )
In PHP :
$dob= " 1960-12-02 |
PHP filesize() function and example
Syntax
int filesize(file_name)
It gives the size in bytes.
Example of filesize() Function in PHP
<?php
$size=filesize("c:/rose1/ram.txt");
echo "size
is ".$size |
PHP Function
manageable, robust.
A general format of the function in PHP is as follows...;?php
function
add($a,$b){
return
$a+$b;}
$c=add(12,39);
echo
"...;
Example:
<?php
function
fact($b){
if($b==1)
return
1;
else
return($b |
PHP strtotime, PHP strtotime Function, strtotime Function, strtotime Function Example
PHP strtotime Function
In this section we will learn strtotime with the help of example code.
About strtotime function:
The strtotime() is used to convert... the return value.
Here is the examples of strtotime() function:
<?php
echo |
PHP Array Unique Key
of \$array1 is:</b><br/>";
var_dump($array);
echo "<br/>...;/b><br/>";
var_dump($array);
echo "<br/><b>...;;
var_dump($array);
echo "<br/><b>After
extracting |
PHP is_executable() Function and example
Syntax
bool is_executable(file_name)
Find the PHP is_executable() function states whether the given file is executable or not
Example of PHP is_executable Fu
Code
<?php
if (is_executable("c |