Im trying to use a fallback image with javascript inside a php echo
, but Im confused with the quotes, what´s the proper way to write this syntax to make it work?
echo '<img class="rounded img-fluid" src="'.$user_image_src.'" alt="User Image" onerror="this.onerror=null; this.src='Fallback.jpg'">';