Php echo within echo?
Hey guys, I’m brand-new to PHP and still have been trying to figure out how to produce this function, any help could well be great!
<php indicate do_shortcode('contact-form to="” subject=”New Concept from ScanSpaces” show_subject=”yes”‘); >
<php indicate do_shortcode('contact-form to="” subject=”New Concept from ScanSpaces” show_subject=”yes”‘); >
may just be written because:
$message = tdomf_the_submitter_email();
Perhaps it will even work such as this:
You should understand a couple things and you will play using this type of anytime you have the likelihood:
JUST ONE.How replicate works
TWO.What is actually string concatenation
JUST ONE.echo outputs data.Every samples:
// productivity some text
indicate “text”;
// productivity a variable
indicate $variable;
// output a spectrum item
indicate $array$item;
TWO.Concatenation is surely an operation you can do to “glue” mutually data for output.Biological samples:
// text and records output
indicate “The variable’s benefit is:”.$variable;
// numerous array ideals output:
indicate “Array benefit 1 is definitely:”.$array1.” along with array value 2 is:”.$array2;
Concatenation is possible with this “dot” character.In a person’s case:
<php
indicate do_shortcode(‘contact-form to=”‘.tdomf_the_submitter_email().'” subject=”New Information from ScanSpaces” show_subject=”yes”‘);
>.
Leave a Reply
You must be logged in to post a comment.