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
- [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.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
What is PHP?2m 1s
-
(Locked)
Printing information3m 15s
-
(Locked)
What are variables?6m
-
(Locked)
Strings in PHP5m 57s
-
(Locked)
Using arrays7m 59s
-
(Locked)
Arithmetic operators and math in PHP4m 38s
-
(Locked)
Challenge: Perform a mathematic operation and store it1m 14s
-
(Locked)
Solution: Perform a mathematic operation and store it3m 33s
-
-
-
-
-