Mis primeras líneas de código con php // My first lines of code with php

avatar

Buenas a todos, soy desarrollador web y estoy aprendiendo php desde cero por cuestiones laborales.
Por el momento solo uso javascript y en el trabajo me preguntaron si podía dar clases a remoto de backend con php y laravel, lo cual no pude porque no sé nada de php.

Hi everyone, I'm a web developer and I'm learning php from scratch for work reasons. At the moment I only use javascript and at work they asked me if I could give remote backend classes with php and laravel, which I couldn't because I don't know anything about php.

php1.jpg
Php es un lenguaje tan raro y difícil de asimilar rápido, igual no descarto que me está dejando buenas impresiones y vale la pena saber cómo usarlo; empecé por estudiar la lógica y declaraciones de datos con php.
Comencé con lo básico, declaración de variables e impresión en la web, porque no sé cómo se declara valores en la consola, si alguien sabe más sobre php agradecería toda su ayuda.

Php is such a strange and difficult language to assimilate quickly, I still don't rule out that it is leaving good impressions on me and it is worth knowing how to use it; I started by studying logic and data declarations with php. I started with the basics, declaration of variables and printing on the web, because I don't know how to declare values ​​in the console, if anyone knows more about php I would appreciate all your help.

php2.jpg
Aprendí también a declarar constantes y ver sus resultados, algo que encontré fue muchos errores cuando escribo código porque siempre debo usar “;” al final sino me arroja error.
Las dos maneras de declarar constantes que aprendí tienen sus limitaciones y alcances diferentes; si utilizo “define” tiene alcance de bloque y global, mientras que la palabra reservada “const VARIABLE”, solo tiene alcance global pero no se puede utilizar dentro de un bloque.

I also learned to declare constants and see their results, something I found was many errors when I write code because I always have to use ";" In the end, it throws me an error. The two ways of declaring constants that I learned about have their limitations and different scopes; if I use "define" it has block and global scope, while the keyword "const VARIABLE" only has global scope but cannot be used within a block.

php3.jpg


php4.jpg


php5.jpg
Es un largo camino para aprender a utilizar bien php, pero estoy seguro que me llevara mas de un mes dominar lo básico.

It's a long way to learn how to use php well, but I'm sure it will take me over a month to master the basics.


0
0
0.000
1 comments
avatar

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support. 
 

0
0
0.000