title: PHP Simple HTML DOM Parser - get element's hyphenated attribute value
body: <p>I'm using PHP Simple HTML DOM Parser. In the page which I want to parse the images 'src' attribute is replaced with 'data-src'. So, if I try to get the image path using the following code, it will return nothing:</p>
  
  <pre><code>$elimage = $offer-&gt;find('div.photo', 0);
  $im = $elimage-&gt;last_child('a');
  $img = $im-&gt;last_child('img');
  $item['image'] = $img-&gt;src;
  </code></pre>
  
  <p>I've tried to do it like this, but it does not work either:</p>
  
  <pre><code>$elimage = $offer-&gt;find('div.photo', 0);
  $im = $elimage-&gt;last_child('a');
  $img = $im-&gt;last_child('img');
  $item['image'] = $img-&gt;data-src;
  </code></pre>
  
  <p>Does anybody know if that's possible to get the value of a custom attribute and, if yes, how can that be achieved?</p>
  
  <p>Thanks for helping!</p>