PHP echo with CSS class?

I would like to echo the following giving it a CSS style

echo $result['definition'];

I tried this (without the space before definition. i wrote the space because otherwise yahoo for some reason cut the line of code):

echo "<span class=\"text5\">$result[' definition']</span><p>"; but it does not work

syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 VQUIX.COM - All rights reserved.