title: Getting a particular value from ajax response
body: <p>I am using ajax with masonry</p>
  
  <p>Ajax code: This ajax is used to get data from </p>
  
  <pre><code>$.ajax({
        type: "get",
        url: "some.php",
        dataType: "text",                 
        success: function(data) { 
          if (data &amp;&amp; data.length &gt; 0) {       
            $items = $(data); 
            $grid.append( $items )
            .masonry('appended', $items);
            $(this).find(".loading").hide();
          }
        }
  </code></pre>
  
  <p>Php Part: This is just a small or sufficient part of php file to understand the problem</p>
  
  <pre><code>$b= "sv";
  echo "asjdgsajd";
  echo "a";
  echo $b;
  </code></pre>
  
  <p>now i am getting everything correctly but i want to use say value of $b for setting a attribute value and also other values as content but how can i particularly get value of $b?
  Thankyou</p>