PHP if ($pg == '22') ... Multiple Page Numbers ?

A.C.M

New member
I got similar content I would like to show on a few different pages and not the rest of my site. So instead of making a few seperate if statements I was wondering how you would modify the below if statement for multiple pages, say like 7, 21 & 30 for example. So the end result would show say Hello on pages 7, 21 & 30 but no where else because of the referenced page numbers in the if statement.

if ($pg == '22')
 
Back
Top