View Single Post
  #2 (permalink)  
Old 11-01-09, 06:47 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by karthikanov24 View Post
Code:
echo "<a href=\" " . $_SERVER['PHPSELF'] . "?c=$catId&p=$pd_id" . "\">link</a>";
But why third and sixth double quotes and concatination (.) which is present before and after
$_SERVER['PHPSELF'] . "?c=$catId&p=$pd_id"
is used??
They're being used to jump in and out of the print statement so the value of "$_SERVER['PHPSELF']" can be inserted inline.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote