Tag Archives: tutorials in php

PHP constants

A constant may be defined as -starts with letter,underscore no $ sign is required like variable definition this value not change in the entire script. creating a constant we use the ‘Define’ keyword with 3 parameters Define(‘constant name’,’value’,’optional parameter tot specify case-sensitive ‘) optional parameter is true.otherwise leave it blank. case-sensitive constant- blank case-insensitive constant-true… Read More »

Basename in php

This function will return the trailing name component of path Syntax —— string basename( string $path[, string $suffix]) example ——–

output as below 1) mydoubts 2) hello 3) vasanthan 4) . 5)