The learnings week 1 was one the was not new to me. The topics where very similar to the things I have done over the years with other languages but a different syntax. Here is the list of the learnings for the week.
- Understand the basics of static versus dynamic web pages
- Setup a REPL.it account to use as a beginning PHP language code editor.
- Practice writing some basic PHP statements embedded into HTML code using php, echo, and print.
- Write comments in PHP code.
- Create a variable in PHP and assign a value to it.
- Output a PHP variable to a webpage.
- Work with string data types in PHP.
- Work with numeric data types in PHP.
- Work with CONSTANTS.
- Understand the difference between single and double quotation marks.
- Identify how to use escape sequences.
Dynamic versus static websites. Dynamic websites are can change and are adjustable with scripts and the information the database provides. Content management systems helps how the website pages are arranged. Static websites do load faster and quicker to create but once made they are not as flexible to new data.
Replit account I had already from my previous classes and not much there to discuss about what I have learned. I do have issues with the site with my browsers and this site and constantly have to log out and back in to make it work properly.
Practicing writing statements in PHP. Have did that with My first Lab Assignment and currently with my second lab Assignment. This very similar to other programing languages so these concepts are not new to me.
The single and double quotes took working out a few examples to see what the difference made.
$string = 'He said "What\'s up?"';
$string = "He said \"What's up?\"";
Still a newbie with this language but it should come to me.