PHP: Adding echo contents inside an other

PHP: Adding echo contents inside an other



I am using one php echo to add a meta tag og:image as follows:

echo "<meta property=\"og:image\" content=\"$b/$new/imagename-$b-$new-$three.jpg\" />";

and echos this image url:


And I started using phpThumb to resize the image dimensions in the url parameters (as I didnt find an easiter way), and the echo is:

echo '<img src="'.htmlspecialchars(phpThumbURL('src=', '/phpThumb/phpThumb.php')).'">';

What I need to do is merge the 2 echo (without img src part) inside the first!

I tried a lot, and what I want is something like:


echo "<meta property="og:image" content="'.htmlspecialchars(phpThumbURL('src=$b/$new/imagename-$b-$new-$three.jpg&w=100&h=200&iar=1', '/zJ/phpThumb/phpThumb.php')).'" />";

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

PHP Interview Questions with Solutions: Prepare for PHP Interview

Prepare for PHP Interviews. Set Variable With php.ini File. Logic & Output Behind PHP Code Segment. Class Concept, Error & Functions in PHP. Start PHP Now!

PHP Web Application Development Company

As a top **PHP Web Application Development Company in USA**[]( ""), we at Data EximIT have...

Advantages of Hiring PHP Developer for your Website Project

PHP - Hypertext pre-processor, a scripting language used by many people in developing web pages, but most of us are unaware even of the full form. To train someone and make them learn this whole language is as difficult and time-consuming as it is...