|
Displaying 1 - 50 of about 14408 Related Tutorials.
|
strtotime()
.
Example of strtotime() Function PHP:
<?php
echo(strtotime("...PHP strtotime() Function
The strtotime() parses a US English textual date... to 1970-1999.
Syntax of strtotime() Function PHP
int strtotime ( string |
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 date function - Date Calendar
php date function Hi,
I am new to PHP. I am trying to get... totally confuced.thank u in advance.
For example :
database: date format: 1960-12-02 (type is date )
In PHP :
$dob= " 1960-12-02 |
|
|
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 date_create
date_create ()
date_create function returns new DateTime object... was introduced in PHP 5.1.0.
Description
DateTime date_create ([ string $time... - String in a format accepted by strtotime(), defaults to "now" |
|
|
Eval Function in PHP
program.
Read PHP Eval() function example.
Thanks...Eval Function in PHP Hello PHP experts,
Please tell me about Eval() Function in PHP. How to use Eva() function in PHP?
Thanks
Hi |
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 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 |
Eval () PHP Function, Example of Eval () PHP Function
and it must be
valid PHP code.
Example code of eval() function:
The following example how to use eval() function.
<?php
$string = "...PHP eval() Function
In this tutorial we will learn about the PHP eval |
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 |
date_modify
- String in a relative format accepted by strtotime().
Example:
<?php...date_modify() in PHP
date_modify or DateTime::modify function modifies... , string $modify )
Parameters of Date Modify Function PHP
object |
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 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 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 |
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 |
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 |
call function in php
call function in php What is the call function in PHP please explain |
php array length function
php array length function writing a php array length function |
PHP is_writable Function with example
Syntax for PHP is_writable Function
bool is_writable(file_name)
It states whether the given file is a writable file or not.
Example of PHP is_writable Function
Code
<?php
$a=is_writable("c |
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 Variable Outside Function
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....
Example 3 :
<?php
function msg()
{
$text |
PHP function ftell() with example
Syntax
int ftell(file_handle)
ftell() function gives the current position of the file pointer.
using the file handler in bytes.
Example of PHP ftell() Function
Code
<?php
$file=fopen("roseindia.txt","r");
echo ftell |
PHP function ftruncate and example
Syntax
int ftruncate(file_handle,length)
ftruncate function truncates the file content with the given length.
And it returns the truncated file size.
PHP ftruncate() Function Example
Code
<?php
$file1=fopen("bb.txt","r |
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 |
PHP Date compare the dates, PHP Compare dates example
The PHP Date compare the dates example code
In this PHP Compare dates example, we are describing the code to compare the dates. In the php program we have... in PHP Program.
<?php
//This example code show you how to compare two |
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 function fopen and example
) mode it creates a new file ,but not in read(r,r+),append(a)mode.
Example of PHP fopen() Function
Code for PHP fopen() Function
<?php
  |
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 fscanf() function and example
.
But if two parameter is used then it returns array
Example of PHP fscant() Function PHP
Code for PHP fsscant() Unction PHP
<?php
 ...;$... ] )
fscanf() function reads the contents of the file according
to the given |
PHP fseek() function and example
with offset),
SEEK_END (Makes position to EOF with offset )
Example of PHP fseek() Function PHP
Code code for fseek() Function in PHP
<?php |
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 |
php error handling function
php error handling function Is there any library or function that can be used to handle errors in PHP |
PHP Function
;
Example:
<?php
function
fact($b){
if($b==1)
return
1;
else
return($b... 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
" |
PHP flock() Function and Example
processes when the file
has lock
Example of PHP Flock() Function
Code for flock() function PHP
<?php
$file = fopen("c:/rose1/ram.txt","w...
Code
<?php
$file =
fopen("c:/rose1/ram.txt","w+");
if (flock($file |
PHP function rmdir and example
Boolean value
Example of PHP rmdir() Function
Source Code of PHP rmdir() Function
<?php
$a=rmdir("upload1");
 ...
Syntax for PHP rmdir() Function
bool rmdir(dir_name[,context])
rmdir |
PHP fpassthru() function and example
the rewind() function
Example of PHP fpassthru() Function
Code for PHP fpassthru() Function
<?php
$file=fopen("c:/rose1/ram.txt","r |
PHP function is_readable() and example
Syntax for PHP is_readable() Function
bool is_readable(file_name)
The PHP is_readable function states whether the given file is readable or not
Example of PHP is_readable() Function
Code
<?php
  |
PHP realpath() function and example
.
On failure it returns FALSE value.
PHP realpath() Function with Example
Code of PHP realpath() Function
<?php
echo realpath("aa.txt");
?>
Output...
Syntax for PHP realpath() Function
string realpath(file_path)
realpath |
PHP fwrite() Function & example
is opened in read form
Example of PHP fwrite() Function
Code
<?php
 ...
Syntax
int fwrite
(
file_handle
,data_string
[,length
] )
fwrite() function writes to the file with the given data
string by using the file handle |
The strlen() function
The strlen() function
The strlen() function is used to find the length of a string.
Syntax is given below :
strlen(string)
The below example gives you a clear idea :
Example :
<?php
echo strlen("Welcome |
PHP function is_file() and example
bool_is_file function states whether the given file
is regular file or not
Syntax
bool is_file(file_name)
Example of PHP is_file() PHP
Code
<?php
$a=is_file("bb.txt");
  |
PHP glob() Function and example
; directories
Code for glob() Function using in PHP Program
<?php
  |
PHP Implode() function
PHP implode() Function Example 1:
<?php
$array=array("Emp01"...PHP implode() function
In PHP, conversion of an array to string is done... the values of $array is:
Emp01,Varun,New Delhi
Example 2:
<?php
$array |
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 |
PHP GD imagesetbrush() Function
<?php
$php =
imagecreatefromjpeg('im.jpg');
$im...);
imagefilledrectangle($im,
0, 0,
299, 99,
$white);
imagesetbrush($im,
$php);
imageline...');
imagejpeg($im);
imagedestroy($im);
imagedestroy($php);
?>
After |
PHP function is_link and example
Syntax for PHP is_link() Function
bool is_link(file_name)
is_link() function checks whether the given file is the link file or not
Example of PHP is_link() Function
Code
<?php
$f=" |
PHP function is_uploaded_file() and example
POST protoocol or not.
Example of PHP is_uploaded_file() Function
Code of PHP is_uploaded_file() Function
<?php
$b1...
Syntax for PHP is_uploaded_file() Function
bool is_uploaded_file
(file_name |
PHP pathinfo() Function and example
file.
PHP pathinfo() Function with Example
Code/Syntax of PHP pathinfo() Function
<?php
$ar1=pathinfo("aa.txt");
 ...
Syntax for PHP pathinfo() Function
Array pathinfo(file_path,other options |