HOME ASP PHP JAVASCRIPT C# Add Code   Turkish
 
     
  ASP Code Samples
PHP Code Samples
JavaScript Code Samples
C# Code Samples

PHP Code Samples

PHP Making a calendar

After copying this code and you have to save as "calnav.php" then you will run your calendar. If you use different name, you will have to change the links.
 

 

PHP Beautiful Image Gallery Example

This image gallery exampe shows all images in the selected folder. You can adjust your image gallery by changing variables in line 1-2 and 3.
 

 

PHP Connecting MySQL Database

MySQL connection must be established before making queries. This code provides to make MySQL connection
 

 

PHP date() formatting

string date ( string format [, int timestamp]) Returns a string formatted according to the given format string using the given integer timestamp or the current local time if no timestamp is given.
 

 

PHP setcookie() function

setcookie() defines a cookie to be sent along with the rest of the HTTP headers
 

 

PHP getdate() function

Returns an associative array containing the date information of the timestamp, or the current local time if no timestamp is given
 

 

PHP substr() function

substr returns part of a string.
 

 

PHP strtoupper () Function

strtoupper makes a string uppercase
 

 

PHP strlen() function

strlen gets string length
 

 

PHP strtolower() Function

strtolower makes a string lowercase
 

 

PHP getdate() function

Returns an associative array containing the date information of the timestamp , or the current local time if no timestamp is given
 

 

PHP Sort Array in Ascending Order - sort()

The following example sorts the elements of the $cars and $number array in ascending alphabetical order
 

 

PHP strrpos Function

strrpos, Find position of last occurrence of a char in a string
 

 

PHP Sort Array in Descending Order - rsort()

he following example sorts the elements of the $numbers array in descending numerical order
 

 

 
  email : info@kodornekleri.com