Blog Archives

PHP string captialization

Php has 3 primary captialization function strtoupper strtolower ucwords Converting the String to upper case- strtoupper() strtoupper () converts the string to upper case string For eg: OUTPUT: oldstring: hello newstring: HELLO Converting the String to lower case- strtolower() strtolower()

Posted in Php Tagged with: ,

gettype() in php

Like other programming languages, php does not requires any  variable declaration so we can move freely with php datatypes. To view the datatype of the variable  use  gettype() function Eg1: OUTPUT 1: Name:HELLO Datatype:string Eg 2: OUTPUT 2 : Value:25

Posted in Php Tagged with: ,