Using Simple HTML Dom Parser to Get hyphenated Attribute
<p>There is a similar question to this on StackOverflow. But, My question is a little different.</p>

<p>I have selected the image with the required class whose image I want. Earlier, I used</p>

<p><code>element-&gt;src</code> </p>

<p>to get the value of src attribute, but now the site has replaced it with 'data-src'. </p>

<p>I do not have the full contents of a tag, hence I can not use preg_replace. I Have the reqired element, I just want to be able to do something like</p>

<p><code>$element-&gt;data-src</code></p>

<p>I am trying to do this using PHP SIMPLE HTML DOM PARSER, but no luck yet.</p>
