> Online tutorial : substr
Showing posts with label substr. Show all posts
Showing posts with label substr. Show all posts

PHP file

PHP File
PHP has powerful file handling function to manage file in a server.Some of these function require some special setting in php.ini and some available by default.

Function in File
write file
read file
open the file

substr

substr() function returns the part of string
Syntax
substr(string,start,length)
Example

<?php
// returns the part of string
echo substr("hello india",6);
echo substr("hello india",6,5);
?>

Output
india
india