What To Learn First in PHP

26
What to learn first in php Presentation by Tessa Mero

Transcript of What To Learn First in PHP

Page 1: What To Learn First in PHP

What to learn first

in phpPresentation by Tessa Mero

Page 2: What To Learn First in PHP

Hello!I am Tessa Mero

What do I do?• College Instructor• Open Source Contributor• Developer• Mentor

You can find me at:@TessaMero

Page 3: What To Learn First in PHP

serverThe first step on learning PHP is setting up a

server

Page 4: What To Learn First in PHP

Set up your server - options

Set up a web server with apache.

✖ Hosting Server (apache)or✖ Local Development Server(WAMP, LAMP, XAMPP)…

✖ http://www.easyphp.org/

Page 5: What To Learn First in PHP

Create file called test.php

C:/wamp/wwwC:/xampp/htdocs

Page 6: What To Learn First in PHP

<?php phpinfo();

?>

Page 7: What To Learn First in PHP

How does the client/server/php work?

Your Computer

(Client)PHP

Interpretor

Web Server

Page 8: What To Learn First in PHP

Start writing phpThe second step to learning PHP is to

start writing it!

Page 9: What To Learn First in PHP

Displaying text

Page 10: What To Learn First in PHP

Commenting text

Page 11: What To Learn First in PHP

Creating variables

Page 12: What To Learn First in PHP

Variables and strings

Page 13: What To Learn First in PHP

Conditional statement – if / else

Basic syntax:If (condition) { //execute }

Page 14: What To Learn First in PHP

Conditional statement – switch

Page 15: What To Learn First in PHP

Comparison operators

Page 16: What To Learn First in PHP

Arrays, loops, & string handling

Page 17: What To Learn First in PHP

Php loopingPHP Looping (built in functions)✖ for✖ foreach✖ while✖ do while

Page 18: What To Learn First in PHP

For loops and while loop example

Page 19: What To Learn First in PHP

arrays

Page 20: What To Learn First in PHP

functions

Displays as:

Page 21: What To Learn First in PHP

Okay, that’s enough!

The next step of learning PHP is extending your knowledge!

Page 22: What To Learn First in PHP

Extend your learning✖ Object Oriented

Programming (OOP)

✖ Model View Controler (MVC) structure

✖ Learn PHP Frameworks (Laravel one of the easiest to learn)

✖ Be familiar with the php.ini file in your server

✖ Review lots of cool built in PHP functions

✖ Check out PHP date functions ( my favorite )

✖ Practicing Debugging and Look into using Error Reporting

Page 23: What To Learn First in PHP

Awesome resources✖ Read books✖ Watch and Read Tutorials✖ Learn how to use an Integrated

Development Environment (IDE) ex: PHPStorm

Interactive PHP Learning: http://www.learn-php.org/

Learn PHP in a FUN way!https://www.codecademy.com/tracks/php

Check out the PHP Documentation: http://php.net/docs.php

Page 24: What To Learn First in PHP

Reach beyond your goals

✖ Find a PHP Mentor (or be a mentor)https://phpmentoring.org/

✖ Contribute to the PHP community (or other PHP related projects, like Joomla!)

http://php.net/get-involved.php

Without contributors, none of this would exist!

Page 25: What To Learn First in PHP

You have come this far on learning. There’s no going back now. ;-)

Page 26: What To Learn First in PHP

Thanks!Any questions?

You can find me at:@tessamero

http://tessamero.com