Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atualização da seção 3 #160

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions _posts/03-02-01-Programming-Paradigms.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ PHP carece de `method_missing`, mas ele está disponível com `__call()` e `__ca
* [Leia sobre Reflexão][reflection]
* [Leia sobre Overloading][overloading]

[oop]: https://secure.php.net/language.oop5
[traits]: https://secure.php.net/language.oop5.traits
[anonymous-functions]: https://secure.php.net/functions.anonymous
[closure-class]: https://secure.php.net/class.closure
[oop]: https://www.php.net/language.oop5
[traits]: https://www.php.net/language.oop5.traits
[anonymous-functions]: https://www.php.net/functions.anonymous
[closure-class]: https://www.php.net/class.closure
[closures-rfc]: https://wiki.php.net/rfc/closures
[callables]: https://secure.php.net/language.types.callable
[call-user-func-array]: https://secure.php.net/function.call-user-func-array
[magic-methods]: https://secure.php.net/language.oop5.magic
[reflection]: https://secure.php.net/intro.reflection
[overloading]: https://secure.php.net/language.oop5.overloading
[callables]: https://www.php.net/language.types.callable
[call-user-func-array]: https://www.php.net/function.call-user-func-array
[magic-methods]: https://www.php.net/language.oop5.magic
[reflection]: https://www.php.net/intro.reflection
[overloading]: https://www.php.net/language.oop5.overloading
2 changes: 1 addition & 1 deletion _posts/03-03-01-Namespaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ Se você estiver planejando usar um padrão para auto-carregamento para uma nova
* [Leia sobre a PSR-0][psr0]
* [Leia sobre a PSR-4][psr4]

[namespaces]: https://secure.php.net/language.namespaces
[namespaces]: https://www.php.net/language.namespaces
[psr0]: https://www.php-fig.org/psr/psr-0/
[psr4]: https://www.php-fig.org/psr/psr-4/
4 changes: 2 additions & 2 deletions _posts/03-04-01-Standard-PHP-Library.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ e outras) e iteradores que podem percorrer por essas estruturas de dados ou por
interfaces SPL.

* [Leia sobre a SPL][spl]
* [Curso em vídeo sobre SPL no Lynda.com(pago)][spllynda]
* [Curso em vídeo sobre SPL no LinkedIn.com (pago)][linkedin]

[spl]: https://php.net/book.spl
[spllynda]: https://www.lynda.com/PHP-tutorials/Up-Running-Standard-PHP-Library/175038-2.html
[linkedin]: https://www.linkedin.com/learning/learning-the-standard-php-library?trk=lynda_redirect_learning
14 changes: 7 additions & 7 deletions _posts/03-05-01-Command-Line-Interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ mostrado a seguir.
{% highlight php %}
<?php
if ($argc !== 2) {
echo "Uso: php hello.php <nome>.\n";
echo "Uso: php hello.php <nome>" . PHP_EOL;
exit(1);
}
$name = $argv[1];
echo "Hello, $name\n";
echo "Hello, $name" . PHP_EOL;
{% endhighlight %}

O PHP define duas variáveis especiais baseadas nos argumentos que seu script receber. [`$argc`][argc] é uma variável
Expand All @@ -57,9 +57,9 @@ Hello, world

* [Aprenda sobre como executar o PHP a partir da linha de comando][php-cli]

[phpinfo]: https://secure.php.net/function.phpinfo
[cli-options]: https://secure.php.net/features.commandline.options
[argc]: https://secure.php.net/reserved.variables.argc
[argv]: https://secure.php.net/reserved.variables.argv
[phpinfo]: https://www.php.net/function.phpinfo
[cli-options]: https://www.php.net/features.commandline.options
[argc]: https://www.php.net/reserved.variables.argc
[argv]: https://www.php.net/reserved.variables.argv
[exit-codes]: https://www.gsp.com/cgi-bin/man.cgi?section=3&amp;topic=sysexits
[php-cli]: https://secure.php.net/features.commandline.options
[php-cli]: https://www.php.net/manual/en/features.commandline.php
2 changes: 1 addition & 1 deletion _posts/03-06-01-XDebug.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ e inspecionar os valores na memória.

Depuradores gráficos deixam muito fácil o processo de percorrer o código, inspecionar variáveis e avaliar o código em
tempo de execução. Várias IDE's possuem incluso ou suportam um plugin para depurar graficamente com o XDebug. MacGDBp é
gratuito tem o código fonte aberto uma GUI (Interface Gráfica do Usuário) stand-alone do XDebug para Mac.
gratuito tem o código fonte aberto uma GUI (Interface Gráfica do Usuário) stand-alone do XDebug para macOS.

* [Aprenda sobre o XDebug][xdebug-docs]
* [Aprenda sobre o MacGDBp][macgdbp-install]
Expand Down