I want something like this
<p id="potato">Here's some text</p>
<?php
SomeSortOfCodeToGetTheContentOfParagraph(#potato)
$value = TheOutPutOfTheCodeAbove
?>
So basically I want a code that gets the content of the paragraph with ID potato
and makes $value
equal to that
I read something about DOM but I don't really understand that
It doesn't have to be a PHP code, as long as $value
is PHP and can be defined that way