RoadMap - PHP
Hi, I'm Alan Rodrigues! Junior Backend Developer/PHP, I'm studying higher education in Computer Science, I got my first opportunity as a Junior FullStack developer, working with PHP Laminas, PostgreSQL, Composer, Git, Docker, Bootstrap 5 and Jquery. I've been studying the fundamentals of programming with a focus on PHP, and delving into Object Orientation, I have some projects ready and I'm creating a Road-Map in PHP based on my studies.
Comandos de saída - Output commands
pt-br
São usados para gerar uma saída em tela (OUTPUT).
- Linhas de comando executadas no
prompt do sistemasua saída será no proprio console.- Linhas de comando executadas no
servidor web - Apache, NGINX ou IISsua saída será no propria pagina HTML.
en-us
They are used to generate an output on the screen (OUTPUT).
- Command lines executed in the
system promptwill be output in the console itself.- Command lines executed on the
web server - Apache, NGINX or IISwill be output in the HTML page itself.
pt-br
echoÉ um comando usado para imprimir uma ou mais string na tela.<?php echo 'Hello World'; ?>
OutputHello World
en-US
echo Is a command used to print one or more strings to the screen.
<?php
echo 'Hello World';
?>
Output Hello World
pt-br
var_dumpExplana todo conteúdo de uma variável, mostrando toda estrutura sobre uma ou mais Expressão, incluindo o tipo e o valor
<?php
$user = [
"fisrt_name" => "Allan",
"last_name" => "Rodrigues"
];
var_dump($user);
?>
Output
array(2) {
["first_name"]=>
string(5) "Allan"
["last_name"]=>
string(9) "Rodrigues"
}
en-US
var_dumpExplains the entire contents of a variable, showing the entire structure over one or more Expression, including type and value
<?php
$user = [
"fisrt_name" => "Allan",
"last_name" => "Rodrigues"
];
var_dump($user);
?>
Output
array(2) {
["first_name"]=>
string(5) "Allan"
["last_name"]=>
string(9) "Rodrigues"
}
pt-br
print_rExplana todo conteúdo de uma variável igual aovar_dump, mas em um formato mais legivel e suprimindo os dados.
<?php
$user = [
"fisrt_name" => "Allan",
"last_name" => "Rodrigues"
];
print_r($user);
?>
Array
(
[fisrt_name] => Allan
[last_name] => Rodrigues
)
en-US
print_rexplain all contents of a variable likevar_dump, but in a more readable format and suppressing the data.
<?php
$user = [
"fisrt_name" => "Allan",
"last_name" => "Rodrigues"
];
print_r($user);
?>
Array
(
[fisrt_name] => Allan
[last_name] => Rodrigues
)
Ir Para Variaveis 🚀
#
@allanrodriguesmachado
