I have this string of data with some chords and their names:
$html="< img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA4AQMAAAB31mwxAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAAEVJREFUeF5jIApwgDCIEAFhEKEEwkoIEYQaLID/PxD8AMmDARpDBsaww8JAqMHUTsBkGRkow84Ok4FQQ5zJZDAG0GTCAADwOiM87WVzggAAAABJRU5ErkJggg==" alt="E" /> E
When I try to put this into a file
file_put_contents("data2.html",$html);
I just creates an empty file.
$html.$html="<img src=\"data ...- Brad$htmlvariable; 2. Escape the quotes; 3. Remove the space between<andimg. - aborted