Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
11Activity
0 of .
Results for:
No results containing your search query
P. 1
03PHP Array String Functions

03PHP Array String Functions

Ratings: (0)|Views: 72|Likes:
Published by Geshan Manandhar

More info:

Published by: Geshan Manandhar on Feb 20, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

01/08/2013

pdf

text

original

 
GeshanManandhar.comGeshanManandhar.com11
PHP Day 3
Geshan ManandharDeveloper, Young Innovations Pvt. Limitedwww.geshanmanandhar.com
http://www.php.net
 
GeshanManandhar.com 2
PHP StringsPHP Strings
A string is series of characters.A string is series of characters.
In PHP, a character is the same as a byte,In PHP, a character is the same as a byte,which is exactly 256 different characterswhich is exactly 256 different characterspossible.possible.<?php<?php$s=“I am a string”;$s=“I am a string”;$s2=‘I am also a string”;$s2=‘I am also a string”;print $s.”---”.$s2;print $s.”---”.$s2;?>?>
 
GeshanManandhar.com 3
PHP StringsPHP Strings
Another ExampleAnother Example<?php<?php$beer = 'Heineken';$beer = 'Heineken';echo "<br>$beer's taste is great.";echo "<br>$beer's taste is great.";// works, "'" is an invalid character for varnames// works, "'" is an invalid character for varnamesecho "<br>He drank some $beers.";echo "<br>He drank some $beers.";// won't work, 's' is a valid character for varnames// won't work, 's' is a valid character for varnamesecho "<br>He drank some ${beer}s."; // worksecho "<br>He drank some ${beer}s."; // worksecho "<br>He drank some {$beer}s."; // worksecho "<br>He drank some {$beer}s."; // works?>?>

Activity (11)

You've already reviewed this. Edit your review.
1 hundred reads
IhsanMedia Corp liked this
14ndcc liked this
al_no_2 liked this
al_no_2 liked this
Nor Azlan Ali liked this
srinivasulu143 liked this
srinivasulu143 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->