Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 09-30-2015, 03:25 PM   #1
Join Date: May 2015
Posts: 20
Default PHP: syntax elements and expressions?

Question one.
What are the syntax elements you see in this code sample below?

Would I be correct to say '$a=1'?

$a =1;

Question two.
What are the expressions in this code sample?

$valueA = 5;
$valueB = 3;

if ($valueA > $valueB) {
echo 'Value A is greater than Value B </br>';
// Outputs the string, appends a html </br>; tag
$valueA= $valueB; //Assigns the value of B to A
echo "value A is not equal to: $valueA"; // outputs the string

Would it be: $valueA = 5; $valueB = 3;
jacob1986 is offline   Reply With Quote
Old 10-01-2015, 01:10 AM   #2
edbr's Avatar
Join Date: Aug 2005
Location: Bali
Posts: 11,187

of course just echo them out. what are you actually trying to do?
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 04:57 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com