What I learned in my PHP Bootcamp

Image from Unsplash

Last year I did a coding bootcamp at BAVC. As a non-coder , I’m planning to share what I learned here. Maybe it’ll be useful or inspiring for you. This time I’m talking about PHP.

PHP originally stood for Personal Home Page, but it now stands for the recursive acronym PHP — Hypertext Preprocessor. PHP is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

The PHP mascot is the elePHPant, isn’t cool? It’s a blue — weird — elephant.

What does it mean?

PHP is a language designed primarily for web development but can also be used as a general-purpose programming language. What distinguishes PHP from something like JavaScript is that the code is executed on the server. PHP is enclosed in special start and end processing instructions (for opening,<?php and for closing ?>). It allows you to jump into and out of PHP mode.

A majority of sites on the web right now run on PHP. Due in large part to its popularity as the language of choice for back-end of content management systems — CMS, like WordPress, Drupal, and Joomla.


Functions

A function is a piece of code which takes one more input in the form of parameter and does some processing and returns a value.

Note: Function names are case-insensitive.

Array

An array is a special variable which can hold more than one value at a time. An ordered map that is a type that associates values to keys. In PHP, there are three types of arrays:

  • Indexed arrays — Arrays with numeric index
  • Associative arrays — Arrays with named keys
  • Multidimensional arrays — Arrays containing one or more arrays

If else

The “if else” statement executes some code if a condition is true and another code if that condition is false.

Process form

Process form is the possibility to respond to user queries or data submitted from HTML forms. You can process information gathered by an HTML form and use PHP code to make decisions based off this information to create dynamic web pages.

Switch-case

The switch-case statement tests a variable against a series of values until it finds a match and then executes the block of code corresponding to that match.

Variables

A variable starts with the $ sign, followed by the name of the variable. Variables are used to store data. Variable values can change over the course of a script.

Note:

  • A variable does not need to be declared before adding a value to it
  • A variable name must start with a letter or the underscore character
  • A variable name cannot start with a number
  • A variable name can only contain alpha-numeric characters and underscores (A-z, 0–9, and _ )

While Loop

The while loop statement tells PHP to execute the nested statement(s) repeatedly, as long as the while expression evaluates to TRUE.

Signup Form

It’s a document that containing empty fields, that the user can fill the data or user can select the data.

For Loops

For loops statements are the most complex loops in PHP. They behave like their C counterparts.

Increment

The PHP increment operators are used to increment a variable’s value.

Note:

  • They only affect numbers and strings
  • Arrays, objects and resources are not affected

I want to acknowledge my teacher, Nolan Erck, who taught me the PHP class at BAVC and showed me most of the code samples I’m sharing with you in this post.



If you’re looking for PM goodies, don’t forget to check out my online store:

Check my online store here: https://society6.com/thaifernandes

👏 Clap once, 👏👏 clap twice, clap however many times you want.

Find out more about me @ my Portfolio, LinkedIn, Instagram, and Twitter. I’m building an app dedicated to women’s health. If you want to get early access, subscribe to the waiting list here. If you’re looking for PM goodies, check my online store too!

📩 Hey you. ⚡Join the PM 101 email list!

I send emails twice a month and I promise is really cool content :)

Click here to subscribe it


Disclosure: This post contains affiliate links and first-party promotion. If you click them and buy a product, I may get a small commission at no extra cost to you.

Product Management 101

PM learnings in my journey at Silicon Valley

)

Thaisa Fernandes⚡

Written by

Program Manager at Twitter Platform Solutions. Scrum Master & PMP Certified. Product Manager at Lunna App ♀️ she/her 💪 immigrant 🌱 vegan

Product Management 101

PM learnings in my journey at Silicon Valley

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade