Well, i'm trying to echo some lines of code but it uses both ""
and ''
.
As far as I know if you start a echo with ""
, everytime you use ""
it will stop the echo.
How do I print this line of code without breaking it? This is what I currently have :
echo "<a class='lightbox' href='img/projects/generic/project-16.jpg' data-plugin-options='{'type':'image', 'mainClass': 'mfp-with-zoom', 'zoom': {'enabled': true, 'duration': 300}}'>";
The data-plugin-options='{'type':'image', 'mainClass': 'mfp-with-zoom', 'zoom': {'enabled': true, 'duration': 300}}'
is the one that is causing me trouble becouse i cant use "" neither can i use '', becouse one will break the echo, the other one will break the tag.
Hope any of you can help me understand and solve this small problem, big thanks in advance !