Тёмный

PHP in 60 Seconds: The Basics  

Dave Hollingworth
Подписаться 26 тыс.
Просмотров 428 тыс.
50% 1

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 157   
@noname9305
@noname9305 9 месяцев назад
so much information in 60 seconds 👏👏👏
@DevGio
@DevGio 8 месяцев назад
For all you new people out there reading comments, PHP is super valuable to learn right now. There are a plethora of jobs needing PHP developers to maintain old systems. Much easier to get a job in php, than to try and get a job in a newer language/framework.
@kidzeezy0112
@kidzeezy0112 8 месяцев назад
can you direct me in this direction sir? how do I even start learning this from scratch?
@fuzzy-02
@fuzzy-02 8 месяцев назад
​@@kidzeezy0112you should know how to use google. This is the most basic fundamental skill. I am not looking down or mocking you. Train your brain to think of solution first, go to google second. Say to yourself "others will google the answer to tell me. I am not blind. I can search myself too"
@samuraijosh1595
@samuraijosh1595 7 месяцев назад
​@@fuzzy-02 lol we gotta tell 'em haha.
@ForexPeak
@ForexPeak 7 месяцев назад
​@kidzeezy0112 I would recommend using traversy media's front to back series for php then when you're done with that and have a good understanding of what it's all about and build a few projects with php I'd advice you go on and learn the laravel framework👍
@natescode
@natescode 5 месяцев назад
Only if you live in India.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Год назад
0:28 You can put a trailing comma after the last item in the list. That can ease program maintenance in some situations.
@likithaapraveen8726
@likithaapraveen8726 Год назад
What’s a trailing comma?
@aimranovlogs4153
@aimranovlogs4153 11 месяцев назад
comma at end of value@@likithaapraveen8726
@paw565
@paw565 10 месяцев назад
​@@likithaapraveen8726comma at the end I guess
@paskuini
@paskuini 10 месяцев назад
​@@likithaapraveen8726he means a comma after the "0" value associated to the "third" index in the associative array
@reviewofall5478
@reviewofall5478 10 месяцев назад
​@@likithaapraveen8726$var => value,
@dschledermann
@dschledermann 5 месяцев назад
I've been a PHP programmer for 22 year. (Yes, since 2001, version 4-something). The language has changed a lot in that time. At the beginning it was very similar to Perl and C, now it's more like Java. Lately however, in my company, some projects are being rebooted in C# and new stuff tends not to be done with PHP at all. I feel like PHP is declining in popularity, which makes me a little sad because I really like the language and I have no interest in C# and all the Microsoft associations that come with it.
@camb2006
@camb2006 5 часов назад
PHP definitely is not declining.Modern PHP is booming right now especially Laravel.
@antonioianniello7337
@antonioianniello7337 4 месяца назад
Actually the video is very useful for those who just know programming language quite well and want to learn php.
@Microphunktv-jb3kj
@Microphunktv-jb3kj 2 месяца назад
.. i would never use php outside of context of Laravel lol... there's very little reasons to use php tbh... php/laravel is good for todo apps... ever seen anything more built with it? : ))) php servers keels over faster than a node server... backend in node/php is error on itself... just use Go or Elixir for backend or something else...
@antonioianniello7337
@antonioianniello7337 2 месяца назад
@@Microphunktv-jb3kj The problem is that you cant use Laravel without knowing php. Or better, you can...but you will write something you dont understand deeply.
@dzvsow2643
@dzvsow2643 4 месяца назад
I wish I could afford to buy your udemy course. you are amazing teacher
@hasanaldaas4109
@hasanaldaas4109 4 месяца назад
Normally it you check it out a few times they give you a huge discount
@Joneewars2
@Joneewars2 3 месяца назад
Udemy courses are cheap and sometimes they give huge discounts.
@fuzzy-02
@fuzzy-02 8 месяцев назад
Beware: you cannot access variables you declared in your file from inside a function UNLESS you re-declare them in the function with a global prefix. Example: ```php $var = "foo"; function boo(){ echo $var; } ``` Will not echo the string foo because of scope. It will be null basically as the function cannot see the one declared outside. Unless you add a global $var in the function like this: ```php $var = "foo"; function boo(){ global $var; echo $var; } ``` Will echo "foo" as intended. You can also pass by value like bo($var) but that is obvious
@IllIIIIIIllll
@IllIIIIIIllll 7 месяцев назад
So "global" word should write in front of it?
@Vichion
@Vichion 2 месяца назад
The reasoning behind this behavior is rooted in the way PHP handles variable scope. By default, variables within a function are considered local to that function. To access a global variable inside a function, you need to use the global keyword to explicitly indicate that the function should use the variable from the global scope. This design helps prevent unintended side effects and makes the code more modular and easier to understand by clearly delineating where variables are defined and used.
@bilalillahi6347
@bilalillahi6347 2 месяца назад
Informative
@hello_world_zz
@hello_world_zz 11 месяцев назад
Question, folks. I've been writing desktop applications in C# for 10 years. I want to move towards web development. There is scalability and microservices... really eager for it. Employers see that I have no practical knowledge in this area and turn me down. But I can potentially get a position in PHP. Should I go for PHP? Thank you very much, your answer is highly important 🙏
@dave-hollingworth
@dave-hollingworth 11 месяцев назад
I would yes - it's still very popular - explained well here: medium.com/@london.lingo.01/10-reasons-why-php-is-still-relevant-in-2023-d533ed6dc687
@hello_world_zz
@hello_world_zz 11 месяцев назад
@@dave-hollingworth thanks a lot, Dave 🙏. You know, in the middle of 40 to change carriers is very exiting
@rdmon746
@rdmon746 4 месяца назад
If you are already proficient in C#, there isn't much use in stepping backwards to php
@jeremiahsmarketing
@jeremiahsmarketing Год назад
If you kmow a bit of SQL, its not that's hard to grasp at each glance
@Mind_exersice
@Mind_exersice 2 месяца назад
Love it. Php learning is in my future learning plan❤
@stickking44
@stickking44 11 месяцев назад
People have been telling me for years that php is trash. Now I have to learn after seeing this
@ericg3065
@ericg3065 6 месяцев назад
I was told the same thing 15 years ago. I fell for the hype of other so called hot languages
@lucaszecat
@lucaszecat 2 месяца назад
​@@ericg3065 what your final conclusion ?
@damiann4734
@damiann4734 Месяц назад
Wow, i can code an entire program with this 60s tutorial!!!!
@kingsgambit9284
@kingsgambit9284 Месяц назад
Php will be comfortable for people to learn who came from linus os n had learnt bash scripting
@jock3rbr
@jock3rbr 3 месяца назад
PHP is a multi purpose language. And here we see just one scenario. Good tips.
@damiann4734
@damiann4734 Месяц назад
Not really... you can do it, but other language can do it better. Such as multithreading support. The core design of php is limited to a single thread Web service app and fiddly to write concurrent, multithreaded applications. And the industry is moving towards machine learning/mathematical models. Developing in PHP and other capable languages such as Python is not practical. Also, a lot of cloud/distributed computing/ platforms have Python interfaces, such as Spark, airflow and more. So it's only natural to gravitate towards a single language that does all that compromising on performance if you are low on human resources or reduce cost...
@adityag6022
@adityag6022 5 месяцев назад
Thank you sir
@120artyom
@120artyom 3 месяца назад
Thanks for video! After watching that I’ve finally got a job in IT
@Hyperslob
@Hyperslob 11 месяцев назад
I’m just happy to be here😂
@zool201975
@zool201975 17 дней назад
variables do have types. by default it is the mixed type you can force types though.
@dave-hollingworth
@dave-hollingworth 17 дней назад
Well, expressions have types, and can have the "mixed" type, but standalone variables don't. You can enforce types of function arguments and properties etc. with type declarations. More details here: www.php.net/manual/en/language.types.type-system.php
@EyBossPusi
@EyBossPusi 9 месяцев назад
If our professor explain it simply back then we would get it lol.
@BassirouNiang-u4u
@BassirouNiang-u4u Месяц назад
Brillant🎉
@BassirouNiang-u4u
@BassirouNiang-u4u Месяц назад
Est-ce que je peux avoir tes contact svp
@greatvedas
@greatvedas 5 месяцев назад
brilliant
@greatvedas
@greatvedas 5 месяцев назад
Hypothetically you could teach rocket-science under 2 hours
@fmachine86
@fmachine86 6 месяцев назад
Whole lot of people in here who aren’t devs acting like they’re devs.
@dmitriylaptiev9409
@dmitriylaptiev9409 2 месяца назад
I am gonna add PHP to my CV after that video
@prasanth.v4170
@prasanth.v4170 Год назад
What is the output
@Steve-Richter
@Steve-Richter Год назад
My vote is for JavaScript syntax, arrays, objects to be enabled in PHP.
@ademineshat
@ademineshat Год назад
PHP is a Backend language and JavaScript runs in the browser. What do you mean to be enabled?
@coderswat
@coderswat Год назад
​@@Steve-Richter 😂😂
@coderswat
@coderswat Год назад
​@@Steve-Richter php is a backend language you can't do like that, you need a class
@IISveirII
@IISveirII 11 месяцев назад
>Javascript syntax *vomits*
@lawrencedoliveiro9104
@lawrencedoliveiro9104 11 месяцев назад
@@IISveirII Still nicer than PHP.
@bernardopedro4441
@bernardopedro4441 2 дня назад
What's the main difference between php and java script?
@whatthefunction9140
@whatthefunction9140 11 месяцев назад
$data["first"] Shoukd be $data['first'] So php doesnt check for a variable
@Sparky-FTW
@Sparky-FTW 6 месяцев назад
Thnks bro
@mulunehtsega6333
@mulunehtsega6333 2 месяца назад
NICE
@nawarjoud5988
@nawarjoud5988 22 дня назад
Okay I’m done! Now where’s my php developer certificate!?
@Rptr797-wn4iu
@Rptr797-wn4iu 2 месяца назад
C and html based python
@kingsgambit9284
@kingsgambit9284 Месяц назад
Its so ez i thought php is hard its features n syntax like that writing shell script in bash but with few changes
@berkaybakacak
@berkaybakacak 4 месяца назад
I hate this language but this video is useful
@Mark_Justine
@Mark_Justine 11 месяцев назад
What is the font style you are using in your vscode i like it
@dave-hollingworth
@dave-hollingworth 11 месяцев назад
Droid Sans Mono (according to the settings - I've never changed it, it was set by the theme I believe)
@notpowder5831
@notpowder5831 Месяц назад
your college lesson for one month in one minute
@philippmp861
@philippmp861 29 дней назад
A bit like batch
@stellarhexus9655
@stellarhexus9655 11 месяцев назад
What's a good programming example for starters?
@dave-hollingworth
@dave-hollingworth 10 месяцев назад
Try this one: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Y9yE98etanU.html
@Kammreiter
@Kammreiter Месяц назад
This is: HTML to MySQL with PHP 😎
@rodrigoqteixeira
@rodrigoqteixeira 3 месяца назад
Wait, is that a real html tag? Like I can do it rn and it will work?
@ndanileka
@ndanileka 26 дней назад
So similar to python
@StumpsAndSixes-ik9wg
@StumpsAndSixes-ik9wg 11 месяцев назад
Wowww in 60s😂
@romania-n6q
@romania-n6q 10 месяцев назад
and everyone complaining that JS is weird
@reynanlamsen2007
@reynanlamsen2007 2 месяца назад
This is very similar to C, isn't it?
@chaloappsgamechannelandminecra
@chaloappsgamechannelandminecra 4 месяца назад
guys do you notice? PHP programming doesn't show error
@lucaszecat
@lucaszecat 2 месяца назад
It does in the browser (dev env)
@jonakthakuria8508
@jonakthakuria8508 4 месяца назад
just consolidated first 5 tuts in 60s
@daniellaplanagimeno3927
@daniellaplanagimeno3927 9 месяцев назад
Wich vscode theme are you using?
@dave-hollingworth
@dave-hollingworth 9 месяцев назад
This one: www.vscolors.com/themes/bf8aa94a-4051-42fe-9bd1-2becad466fe7-41e84e99
@james_zapanta
@james_zapanta Год назад
is php still good? i mean with all the new languages/tech out there, can you still get a decent job using it? php beginner here.
@dave-hollingworth
@dave-hollingworth Год назад
Absolutely, it's still one of the most used languages out there for web development. Mostly because it's so widely supported - it's available on almost all web hosting. Plus it's very simple to pick up and start using, and WordPress (which runs a huge proportion of the web's sites) uses it. So definitely still worth learning and you can get a decent job with it.
@ivanjelenic5627
@ivanjelenic5627 Год назад
Yes, in the last decade and especially the last few years it has improved dramatically. Many features were added to make it easier, nicer, and cleaner to write code, and the performance increased over 4 times. Couple that with composer for managing packages, git, and Laravel framework for making websites, it's a pleasure to code in. There's many big companies using PHP, including Facebook. Also about 80% of all websites on the internet are still using PHP. You can get a decent job, yes, given that a vast majority of sites are using PHP. Even if you decide to switch later, you will learn lots of concepts from PHP and Laravel that are applicable in other languages and frameworks. On average, it's not the most paid job, but that's probably because of all those sites.
@StumpsAndSixes-ik9wg
@StumpsAndSixes-ik9wg 11 месяцев назад
​@@dave-hollingworthsome tech nerds dont know the value of PHP doesnt even know and start speaking shit 😂
@pau1phi11ips
@pau1phi11ips 10 месяцев назад
There's a reason PHP still powers +75% of the web and all the JS frameworks combined are barely 3%.
@chiko7650
@chiko7650 9 месяцев назад
Foreach is “while” in Python?
@dave-hollingworth
@dave-hollingworth 9 месяцев назад
stackoverflow.com/questions/44404475/what-is-the-equivalent-of-foreach-php-in-python#:~:text=The%20equivalent%20of%20the%20foreach,e.g.&text=It%20actually%20works%20for%20all%20iterables%20in%20python%2C%20including%20strings.&text=However%2C%20it%20is%20worth%20noting,they%20are%20a%20shallow%20copy.
@miyu545
@miyu545 9 месяцев назад
No, foreach is an iteration while, while is a condition.
@ivanjelenic5627
@ivanjelenic5627 Год назад
Please dont show the == operator to newbies, hell, dont show it to anyone. Just use ===
@cedrictheveneau9141
@cedrictheveneau9141 11 месяцев назад
Since I’ve seen people saying we should use === I’ve always had the reflex to use 3 of them instead of two, I don’t really know what difference it makes though, but if it helps have a more solid code, that’s still worth it anyway
@kubiku
@kubiku 11 месяцев назад
​@@cedrictheveneau9141if u use == (1 == "1" will be true) but if u use (1 === "1" will be false) === will also check the data type to be equal.
@logicdonkey
@logicdonkey 11 месяцев назад
@@cedrictheveneau9141 Anyone who might be wondering: “2” == 2 will be true. (Sorta equals) “2” === 2 will be false. (Exactly equals) The == will perform type coercion if it has to. Which is why “2” (a string) and 2 (an integer) will become true. It’s easier to run into bugs if you don’t fully understand it. That’s why === is almost always the best option.
@Engazan
@Engazan 12 дней назад
Ehh i dont agree, Yea u can use it that way but its not only way to use it ( also i almost never writed it in html in my 8years of php backend dev ) For example imports, exports, apis, …
@user-ss8gw8tw3s
@user-ss8gw8tw3s Год назад
Output su Aave che
@youtube_tag
@youtube_tag 11 месяцев назад
What is the theme u are using??
@dave-hollingworth
@dave-hollingworth 11 месяцев назад
This one: www.vscolors.com/themes/bf8aa94a-4051-42fe-9bd1-2becad466fe7-41e84e99
@youtube_tag
@youtube_tag 11 месяцев назад
@@dave-hollingworth thanks
@Munii45
@Munii45 8 месяцев назад
Name this app
@qwertyasdfg7782
@qwertyasdfg7782 10 месяцев назад
this is php template engine 😂
@ArrowheadMapping6767
@ArrowheadMapping6767 Год назад
What is the software he is using called
@OhShiverMeTimbers
@OhShiverMeTimbers Год назад
VS Code
@daredevil9467
@daredevil9467 Год назад
Sublime text
@SamsungA04e-dp7kj
@SamsungA04e-dp7kj 2 месяца назад
JOKO WIDODO
@ahmedemad1020
@ahmedemad1020 9 месяцев назад
Lol 😂 are u fr ? You must change title to 1990s you have completely ignored the entire new system of php that the new frameworks like laravel are count on PHP OOP
@dave-hollingworth
@dave-hollingworth 9 месяцев назад
Thank you for the feedback! The idea of this video was to cover the syntax basics that are necessary no matter whether you're using a framework or not. I did what I could in 60 seconds (the maximum time for a RU-vid short). I'll cover OO and Laravel in further shorts though.
@brkenheartd
@brkenheartd 10 месяцев назад
vs code currently does not even read my php :( why
@dave-hollingworth
@dave-hollingworth 10 месяцев назад
Bit difficult to say without more details - check your files are named with ".php" at the end, and that they're in a folder you have permission to read from
@brkenheartd
@brkenheartd 10 месяцев назад
@@dave-hollingworth all is correct on that part..what i'm trying to do is write php within html and it doesn't read it ?
@dave-hollingworth
@dave-hollingworth 10 месяцев назад
@@brkenheartd Make sure you're using the correct tags, e.g.
@brkenheartd
@brkenheartd 10 месяцев назад
@@dave-hollingworth yes but it's a self-hosted server with a free domain and local host tunneling...I switched from running plain NGINX to running off Laragon which included php in the environment so that I couldn't install or get php to work in the local host myself or in NGINX even tho it has it.
@brkenheartd
@brkenheartd 10 месяцев назад
@@dave-hollingworth it doesn't matter as long as the php works i'm glad ^_^
@YoutubeP-vn1de
@YoutubeP-vn1de 4 месяца назад
Can you help me in 1 script fixing I will pay bro
@shabas_001
@shabas_001 6 дней назад
and there's no function
@Abendplaner
@Abendplaner Год назад
This is old php4 style
@pau1phi11ips
@pau1phi11ips 10 месяцев назад
It is only 60 seconds... 🤨
@etoddyneles.7429
@etoddyneles.7429 5 месяцев назад
Coloque legendas em português😢
@samuca101
@samuca101 3 месяца назад
Se tu quer ser programador a primeira coisa que deveria aprender é inglês.
@GoldEnrolled1
@GoldEnrolled1 5 месяцев назад
Lost me at $
@hamdanaldabbas1574
@hamdanaldabbas1574 4 месяца назад
Wtf is this ? Why are there so many dollar signs?
@shashankkulkarni993
@shashankkulkarni993 10 месяцев назад
I am not interested in PHP
@trb147
@trb147 11 месяцев назад
U gotta chill bruh talking too fast cuh
@MohammadSafa-ms5nw
@MohammadSafa-ms5nw 8 месяцев назад
"PHP in 60 seconds" bro , he's supposed to speak fast otherwise he won't finish in time!
@trb147
@trb147 8 месяцев назад
​@MohammadSafa-ms5nw Nah make it php in 120 sec then
@MohammadSafa-ms5nw
@MohammadSafa-ms5nw 7 месяцев назад
@@trb147 then it won't be a RU-vid short.
@Dylan_thebrand_slayer_Mulveiny
@Dylan_thebrand_slayer_Mulveiny 4 месяца назад
"To concatenate a string we use a dot. " No. Don't. Please don't. Use sprintf. Use printf. Hell, use a fucking array and join. Just please don't use dots.
@WaldemarDellgg
@WaldemarDellgg Год назад
First sentence ist wrong
@Vichion
@Vichion Год назад
Its truthy, but yes, php only require the opening tag in a pure php file.
@mihoteo
@mihoteo Год назад
Also you can put types for variables so another mistake
@dave-hollingworth
@dave-hollingworth Год назад
Well, you can type hint function arguments and properties, which will create an error if you pass a varable that contains a value that doesn't match the type hint. However you can't specify that a variable contains a specific type unfortunately.
@mihoteo
@mihoteo Год назад
@@dave-hollingworth /* @var int $a */ $a = 1 Is enough for phpstorm
Далее
Introduction to PHP | Learn Coding
1:05:54
Просмотров 81 тыс.
Learn PHP in 15 minutes
15:00
Просмотров 2,7 млн
لدي بط عالق في أذني😰🐤👂
00:17
Learn To Code Like a GENIUS and Not Waste Time
9:41
Просмотров 1,5 млн
The 3 Laws of Writing Readable Code
5:28
Просмотров 525 тыс.
Learn JSON in 10 Minutes
12:00
Просмотров 3,2 млн
CSS Tips And Tricks I Wish I Knew Before
12:12
Просмотров 475 тыс.
C++ vs Rust: which is faster?
21:15
Просмотров 392 тыс.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
PHP Developer Interview Questions and Answers | TOP 25
11:16