title: how to declaration looping ini variable querystring sparql
body: <p>I have variable <code>$querystring</code> like this: </p>
  
  <pre><code>$querystring = '
              PREFIX : &lt;http://www.semanticweb.org/user/ontologies/2016/karya_ilmiah#&gt;
              SELECT ?judulNaskah ?linkNaskah
              WHERE { ?naskah :judulNaskah ?judulNaskah. filter regex(str(?judulNaskah),"'.(for ($i=0; $i &lt;$jumlah; $i++){
                  echo "$kata[$i] ";}).'","i"). 
              ?naskah :linkNaskah ?linkNaskah} ';
  </code></pre>
  
  <p>I want to make looping with a function for in my variable, but if I run my code there is an error in the declaration for looping. How the solution of my problem? </p>