title: How can I have more than one value for my php
body: <p>Hello how can I input more than one value like on an email $headers on this php function. Here is the code:  </p>
  
  <pre><code>function strToHex($string){
  $hex='';
  for ($i=0; $i &lt; strlen($string); $i++){
      $hex .= "%".dechex(ord($string[$i]));
  }
  return $hex;
  }
  
  $script = '&lt;p style="font-size:16px; color:red;"&gt;Hello world!&lt;/p&gt;';
  
  $encoded = strToHex($script);
  ?&gt;
  
  &lt;script language="javascript"&gt;
  document.write(unescape("&lt;?php echo $encoded ?&gt;"));
  &lt;/script&gt;
  </code></pre>
  
  <p>Basically I wanted to have more than one script value for the php function. Here is the code:</p>
  
  <pre><code>$script = '&lt;p style="font-size:16px; color:red;"&gt;Hello world!&lt;/p&gt;';
  $script = '&lt;p style="font-size:16px; color:red;"&gt;This is new&lt;/p&gt;';
  </code></pre>
  
  <p>How can I add more than one value for my $script?</p>