mirror of
https://github.com/restoreddev/phpapprentice.git
synced 2025-08-04 13:57:40 +02:00
3
assets/files/robots.txt
Normal file
3
assets/files/robots.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
User-agent: *
|
||||||
|
Disallow:
|
||||||
|
Sitemap: https://phpapprentice.com/sitemap.xml
|
117
assets/files/sitemap.xml
Normal file
117
assets/files/sitemap.xml
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<urlset
|
||||||
|
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
|
||||||
|
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
|
||||||
|
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
|
||||||
|
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>1.00</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/installing-php.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/basics.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/variables.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/arithmetic.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/strings.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/comparisons.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/boolean-logic.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/conditionals.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/loops.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/arrays.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/functions.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/classes.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/classes-inheritance.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/classes-visibility.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/classes-constructor.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/static.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/interfaces.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/abstract.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/exceptions.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://phpapprentice.com/credits.html</loc>
|
||||||
|
<lastmod>2018-12-27T01:20:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
|
||||||
|
</urlset>
|
@@ -15,7 +15,7 @@
|
|||||||
The site currently has content for learning the basics of PHP. In the future, more pages will be added for more advanced topics like building websites, database integration and security.
|
The site currently has content for learning the basics of PHP. In the future, more pages will be added for more advanced topics like building websites, database integration and security.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
PHP Apprentice is currently a work in progress. If you would like to contribute or request a certain discussion topic, checkout the <a href="https://github.com/restoreddev/phpapprentice" target="_blank">GitHub repository</a>.
|
PHP Apprentice is currently a work in progress. If you would like to contribute or request a certain discussion topic, check out the <a href="https://github.com/restoreddev/phpapprentice" target="_blank">GitHub repository</a>.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
To get started, you will need to <a href="<?php echo page_path('installing-php') ?>">install</a> PHP, have a text editor and open your terminal.
|
To get started, you will need to <a href="<?php echo page_path('installing-php') ?>">install</a> PHP, have a text editor and open your terminal.
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// In PHP, arrays are used to store a list of items in a single variable.
|
||||||
// There are two ways to create an array.
|
// There are two ways to create an array.
|
||||||
|
|
||||||
// First, you can use the array construct to pass in values separated by commas
|
// First, you can use the array construct to pass in values separated by commas
|
||||||
// and it will return an array.
|
// and it will return an array.
|
||||||
$taskList = array('grocery store', 'change car oil');
|
$taskList = array('grocery store', 'change car oil');
|
||||||
|
@@ -19,7 +19,7 @@ class Ballcap
|
|||||||
{
|
{
|
||||||
public $color;
|
public $color;
|
||||||
|
|
||||||
public function __construct($color )
|
public function __construct($color)
|
||||||
{
|
{
|
||||||
$this->color = $color;
|
$this->color = $color;
|
||||||
}
|
}
|
||||||
|
@@ -20,7 +20,7 @@ $processor = new Processor();
|
|||||||
$processor->charge('1234');
|
$processor->charge('1234');
|
||||||
|
|
||||||
// A developer who wants to prevent an exception from stopping code execution
|
// A developer who wants to prevent an exception from stopping code execution
|
||||||
// can catch the exception and use it for logging or a return an error to a user.
|
// can catch the exception and use it for logging or display the error to a user.
|
||||||
|
|
||||||
// Just wrap the code that might throw an exception with the keyword "try" and brackets
|
// Just wrap the code that might throw an exception with the keyword "try" and brackets
|
||||||
// followed by "catch", the exception type in parentheses and more brackets.
|
// followed by "catch", the exception type in parentheses and more brackets.
|
||||||
|
Reference in New Issue
Block a user