forked from briguy410/php101
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
PHP 101 coursework and homework | ||
|
||
### Week 1 | ||
|
||
We learned basic PHP syntax, including statements like `if`, built-in functions like `strlen`, and even used a special array provided by PHP called `$argv`. | ||
|
||
Depending on your home setup, you might open the `Terminal`, change directories to the repository, and run `php content/week1/main.php Charleston`. | ||
|
||
You should see text similar to we had in class. Try it again with a two-word city, like `San Francisco`. | ||
|
||
There's a problem. Our script only writes `San`! | ||
|
||
1. Why is this happening? Where did `Francisco` go? | ||
2. Can you find a way to accept a city containing any number of words? There's more than one right answer! | ||
|
||
### Week 1 Extras | ||
|
||
[Watch wat!](https://www.destroyallsoftware.com/talks/wat) |