From the course: PHP for WordPress

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Printing information

Printing information - PHP Tutorial

From the course: PHP for WordPress

Start my 1-month free trial

Printing information

- [Instructor] The most common task you'll be performing in PHP as it pertains to WordPress is printing stuff on the screen. After all, WordPress is about displaying content. The first thing you should know is every PHP program begins with an opening PHP tag and ends with a closing PHP tag. The opening PHP tag starts with the less than sign, a question mark, and then the letters p-h-p. The closing PHP tag is just the question mark and then the greater than sign. This tells the server to process everything in between these tags. You can think of this like the opening and closing HTML tags. As it turns out, PHP acts as an extension or companion to HTML. It enables HTML to do things that it can't do on its own: interactive tasks. Where HTML strictly handles the markup of a page, that is a description of what each element is, and a basic notion of how it looks, PHP generates dynamic data for a web page to be displayed.…

Contents