From 8712167d469e2d43047d4816c4b2e9a4b57476db Mon Sep 17 00:00:00 2001 From: Danilo Duarte Date: Wed, 28 Dec 2022 06:06:53 -0300 Subject: [PATCH 1/2] =?UTF-8?q?atualiza=C3=A7=C3=A3o=20cap=C3=ADtulo=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _posts/03-04-01-Standard-PHP-Library.md | 4 ++-- _posts/03-05-01-Command-Line-Interface.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_posts/03-04-01-Standard-PHP-Library.md b/_posts/03-04-01-Standard-PHP-Library.md index 01423fd24..b130459a2 100644 --- a/_posts/03-04-01-Standard-PHP-Library.md +++ b/_posts/03-04-01-Standard-PHP-Library.md @@ -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 diff --git a/_posts/03-05-01-Command-Line-Interface.md b/_posts/03-05-01-Command-Line-Interface.md index 93d495c5e..d57e8f2ef 100644 --- a/_posts/03-05-01-Command-Line-Interface.md +++ b/_posts/03-05-01-Command-Line-Interface.md @@ -31,11 +31,11 @@ mostrado a seguir. {% highlight php %} .\n"; + echo "Uso: php hello.php " . 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 From 6d89176a720390fe3092acb3ce2d7c5ff1031ffd Mon Sep 17 00:00:00 2001 From: Danilo Duarte Date: Sat, 27 May 2023 02:29:14 -0300 Subject: [PATCH 2/2] =?UTF-8?q?atualiza=C3=A7=C3=A3o=20se=C3=A7=C3=A3o=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _posts/03-02-01-Programming-Paradigms.md | 18 +++++++++--------- _posts/03-03-01-Namespaces.md | 2 +- _posts/03-05-01-Command-Line-Interface.md | 10 +++++----- _posts/03-06-01-XDebug.md | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/_posts/03-02-01-Programming-Paradigms.md b/_posts/03-02-01-Programming-Paradigms.md index 6649c625b..5feac6416 100644 --- a/_posts/03-02-01-Programming-Paradigms.md +++ b/_posts/03-02-01-Programming-Paradigms.md @@ -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 diff --git a/_posts/03-03-01-Namespaces.md b/_posts/03-03-01-Namespaces.md index b9e2c5150..03cd2893a 100644 --- a/_posts/03-03-01-Namespaces.md +++ b/_posts/03-03-01-Namespaces.md @@ -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/ diff --git a/_posts/03-05-01-Command-Line-Interface.md b/_posts/03-05-01-Command-Line-Interface.md index d57e8f2ef..5775eb415 100644 --- a/_posts/03-05-01-Command-Line-Interface.md +++ b/_posts/03-05-01-Command-Line-Interface.md @@ -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&topic=sysexits -[php-cli]: https://secure.php.net/features.commandline.options +[php-cli]: https://www.php.net/manual/en/features.commandline.php diff --git a/_posts/03-06-01-XDebug.md b/_posts/03-06-01-XDebug.md index bc311a94f..5a7d4935c 100644 --- a/_posts/03-06-01-XDebug.md +++ b/_posts/03-06-01-XDebug.md @@ -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]