Question: Using PHP, I need to pass $title_length to $body_data so I can print it on my HTML page. here is my PHP code: Here is
Using PHP, I need to pass $title_length to $body_data so I can print it on my HTML page.
here is my PHP code:

Here is my HTML code:

I'm assuming I'm missing a simple return-type statement under the if statements but I haven't gotten it right.
$length = strlen($title.$favorite_drink.$pets_name. $favorite fictional_place. $favorite_real_place); //comments on title length if ($length >= 30) { $title_length = "That's a heck of a title!"; } if ($length {{title}} {{favorite_drink}} {{pets_name}} {{favorite_fictional_place}} {{favorite_real_place}}. {{title_length}}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
