I just need to know, what is the difference and relashin ship between the two?

Maybe it's just me but this question doesn't make much sense...

Syntax is the format in which code is written (i.e. PHP always starts with <?php and ends with ?>, $ implies a variable name, you end lines with ;, etc)

Contructs are creating objects / calling language functions (echo, print, isset, etc)

I am asking this because I read a book about PHP and it said, there are two things to learn about PHP beforehand. Syntax and Constructs..

I am pretty sure this is what the book is talking about.(Basic constructs). Not the same constructor, I thought it would be..

It should be called control structures..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.