I purchased the Wrox 'Beginning PHP' book and am reading about variables.
The give the example:
$actor = "Marlon Brando";
I don't understand why I would want to go thru the trouble of coding this variable when I can simply enter 'Marlon Brando' in HTML text.
I know there must be a very good reason, but I just can't see one right now.
Can someone explain why I would want to go thru the trouble of coding text variables when I can simply enter the text without setting it up as a variable.
I need some kinda pragmatic reason.
Thx.