Pages

String data type in php

Monday, 18 February 2013

String data type in php:-
A string is a collection of character s in php. We can declare a string in 3 ways.
By using single quotes
By using double quotation
By using heredoc syntax
<?php
$x=100;
$str= ‘the value of x is $x’;
$str1= “the value of x is $x”;
Echo  $str;
Echo $str1;
?>
 

Most Reading