i need to combine these two functions
<meta name="twitter:image" value="<?php echo(str_replace("367.jpg", "150.jpg", $imageSrc)) ?>" /
and
<meta name="twitter:image"value="<?= substr($imageSrc, 0, strpos($imageSrc, '.jpg')+4) ?>" />
i have tried this
<meta name="twitter:image" value="<?php echo(str_replace("367.jpg", "150.jpg", $imageSrc)),substr($imageSrc, 0, strpos($imageSrc, '.jpg')+4)?>" /
while the code has no issues but it renders this
<meta name="twitter:image" value="https://rlv.zcache.com/seal_of_success_blue_graduation_announcement-r6c3587ec36fd4246afd2add46333186a_6gdu5_150.jpg?rlvnet=1&bg=0xFFFFFFhttps://rlv.zcache.com/seal_of_success_blue_graduation_announcement-r6c3587ec36fd4246afd2add46333186a_6gdu5_367.jpg" /
whereas i want it to return just one url this
https://rlv.zcache.com/seal_of_success_blue_graduation_announcement-r6c3587ec36fd4246afd2add46333186a_6gdu5_150.jpg
that is replace 367.jpg to 150.jpg and remove everything after.jpg ?rlvnet=1&bg=0xFFFFFF