note 29121 deleted from function.print by didou

From: Date: Fri, 25 Jul 2003 22:00:19 +0000
Subject: note 29121 deleted from function.print by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-52673@lists.php.net to get a copy of this message
Note Submitter: vrillusions@neo.rr.com ---- Using print with variables // var $strCSSName is path to css file $strCSSName = "style.css"; print "<link rel=\"stylesheet\" href=\"$strCSSName\" type=\"text/css\">"; /* will output: <link rel="stylesheet" href="style.css" type="text/css"> Enclose in ' instead of " and you don't have to escape all of them: */ print '<link rel="stylesheet" href="$strCSSName" type="text/css">'; /* will output: <link rel="stylesheet" href="$strCSSName" type="text/css"> to use single quotes and still show the variable, concatenate (can never spell that) it together using . */ print '<link rel="stylesheet" href="'.$strCSSName.'" type="text/css">'; /* will output: <link rel="stylesheet" href="style.css" type="text/css"> -- Todd */

« previous php.notes (#52673) next »