40 Commits

Author SHA1 Message Date
Peter Kokot
52b6de0d6f Update links to https in Basics section 2023-01-11 20:57:11 +01:00
Xymph
a85d35345d Remove inappropriate apostrophes 2022-08-23 22:19:23 +02:00
Xymph
ca0f073a4c Remove space inside 2 hyphenated words 2022-08-23 22:18:11 +02:00
Xymph
389eb5c0c3 Fix incorrect case of a few words 2022-08-23 22:17:07 +02:00
Xymph
6e0076e2c2 Add missing punctuation 2022-08-23 22:15:28 +02:00
colshrapnel
21ca28d92a Delete the Variable declarations section
With the new memory management model the Variable declarations part is not relevant anymore. so it's better to be removed.
2021-03-01 12:09:49 +03:00
Ahammar Yassine
d90a6dd8be Avoid comment misunderstanding
Old:
`$a = 3;
return ($a == 3) ? true : false; // Will return true or false if $a == 3`

New:

`$a = 3;
return ($a == 3) ? true : false; // Will return true if $a == 3 or false`

help us to avoid misunderstanding of the comment
2018-10-18 10:37:59 +00:00
Oluwafemi Sule
8fbfb9f8c5 highlight statement syntax for multiline strings 2018-03-23 14:34:44 +01:00
Phil Sturgeon
0121fada17 Merge pull request #673 from likemusic/patch-1
Update The-Basics.md
2016-07-17 14:37:21 +01:00
Valerij Ivashchenko
ed0063cafd Update The-Basics.md
if/else statements can't be used inside class definition, just inside class methods. This may confuse beginners.
2016-07-16 12:38:35 +03:00
Valerij Ivashchenko
7d94b0f83c Update The-Basics.md
Comment "Strict comparisons" over "equality comparisons" code example make confusing.
2016-07-16 12:34:11 +03:00
Phil Sturgeon
dc7ab1b3bc Merge pull request #602 from echernyavskiy/patch-2
Add an example of even more simple boolean return statement
2016-02-15 21:47:54 -05:00
ftwbzhao
cbba996ea6 [Basic]Ternary operators inform minor change 2015-11-17 00:11:47 +08:00
Evgeny Chernyavskiy
adff75fc95 Add an example of even more simple boolean return statement 2015-10-03 16:44:04 -04:00
Phil Sturgeon
a0b56d6c37 noticable -> noticeable 2015-01-22 15:01:59 -05:00
jrfnl
fe46acb357 Add links to other useful resources and video tutorials 2015-01-02 18:28:34 +01:00
Peter Kokot
d1851cc82b jekyll-sitemap gem added 2014-12-09 06:18:31 +01:00
jrfnl
80148bdc44 Jekyll header spacing consistency 2014-12-08 22:03:53 +01:00
jrfnl
82ee7ad76a Fix line wrapping consistency - round 1
Comply with the 'wrap at 120 chars' style rule stated in the contributing.md document
2014-12-08 22:03:47 +01:00
jrfnl
7d19feaf98 Fix highlighter consistency
- in some places php would not be highlighted as the `<?php` tag was missing
- in one place there was a duplicate `<?php` tage
- replaced `bash` with `console` for better highlighting
- ensured all console snippets are wrapped within highlighting code
- wrapped ini examples in highlighting code
2014-12-08 19:32:03 +01:00
jrfnl
1852c53aa5 Use language independent permalinks for php.net urls
@see http://php.net/urlhowto.php
2014-12-08 17:48:38 +01:00
Simon Scarfe
13dc1512b6 Link dead, using archived version 2014-12-01 21:33:27 +00:00
Phil Sturgeon
cdb013302a Cant spell basic words 2014-10-08 09:54:10 -05:00
Phil Sturgeon
291745c26f Closes #441: Cleared up some string examples.
Double v Single = meh.
2014-10-07 17:31:20 -05:00
Phil Sturgeon
a7cd471215 Fixed up a few bits and bobs including syntax error. 2014-06-10 14:41:31 +01:00
Neil Masters
3c647ba559 Update The-Basics.md
Tidying up the wordyness, removing overused and thus redundant variable assignments and improving explanations in replacement for quick & short comments.
2014-06-02 23:32:50 +01:00
Neil Masters
871ca108d2 Update The-Basics.md
Added section for using brackets for both form and function. I would appreciate a second set of eyes over this to clarify its easy to understand.
2014-03-13 09:56:01 +00:00
Neil Masters
84491f7b06 Update The-Basics.md
Updated to conform to rest of document and I believe that I have utilized the correct syntax for then highlighters.
2014-03-12 16:25:24 +00:00
Neil Masters
0b78a32686 Update The-Basics.md
Adding a suggested change to ternary operators where its not actually necessary to use them but is commonly seen.
2014-03-12 13:27:40 +00:00
Phil Sturgeon
4be17cec52 Closes #251: Conditional arguments or Conditional statements 2013-04-12 12:17:27 -04:00
Phil Sturgeon
3a79e14a36 Typo 2013-01-03 11:23:35 -05:00
Leif Arne Storset
3cbb0ba996 Clarify global-namespace explanation
I had trouble understanding this passage, but a peek in the documentation
explained it.  It's not about "execution" – the execution of the function is
unaffected – it's about name resolution. And it's also not really about
"definition".

While I was at it, I renamed "method" to function, as these are not methods and
methods aren't really affected by namespaces (they're already namespaced by a
class). Also copyedited a bit.
2012-12-11 21:50:13 +01:00
Tom de Bruin
c95fc4250e It's true, it will return 'yay'. 2012-10-12 09:13:43 +01:00
Tom de Bruin
724a5bb9b8 Changed example return values
At request of Phil Sturgeon.
2012-10-12 09:09:21 +01:00
Tom de Bruin
2be210a687 Corrected ternary operator syntax 2012-10-11 05:17:06 +01:00
andrea
f731160ded Fixed maruku warning: Unclosed span (waiting for ["*"]) 2012-08-20 15:02:13 +02:00
Nick Adams
876ec7515d Grammar/Spelling corrections 2012-08-11 17:04:28 +12:00
TAKAGI Masahiro
44de4d3b44 Remove single quotes from heredoc identifier 2012-08-11 07:01:01 +09:00
=
26628985dd Tweak perf example in The Basics 2012-08-10 13:42:40 -04:00
Nick Adams
3a02de8d8f Added "The Basics" section 2012-08-11 03:08:19 +12:00