PHP Tutorials: Name Splitter (Part 1)
Splits a full name іntο two seperate variables. Useful fοr signup forms whеrе уου јυѕt want tο qυеѕtіοn thе user thеіr full name, аnd nοt hаνе two seperate boxes fοr first аnd last names.
Of course it didn’t work because you said that last name and first name were exactly the same and–Well they aren’t the same, naturally!–, but let’s see how you fix it.
I like reading about the multiple styles. It allows me to make a better network of all the data in my head, and it makes it simpler for me to reflect of creative ways to code. Coding can be like an art. I tend to agree with you that nitpicking doesn’t help a whole lot, but it’s not like they’re going to stop. So just delight in it. – movingsole
Instead of $firstname = $firstname.mb_substr(…..); you could just use $firstname.=mb_subsrt(…..); – there is less code.
Fantastic video btw.
Is everyone really that stupid? He visibly clarifies there ARE OTHER EASIER WAYS OF DOING THIS. And many of you are questioning the way he is doing it…no s*** there are different codes for the same thing, HE EXPLAINS THAT. Just delight in, and if you already know how to do it, why are you wasting time watching this tutorial? btw tuleo i know you are just joking, so no shots at you
not sure mate, tbh im new to PHP, more a Perl guy
lol i was thiking same isnt there word parsing function also?
It would be fascinating to see your code. Bet nothing kills your creativity when it comes to making spaghetti
Fantastic tutorial Alex. I have watched nearly all of your video.
I can say, you are the reason why I am excellent at PHP now. When I first ongoing learning PHP, I searched Youtube and I found you.
Thanks a lot for free tutorial.
oops, pardon me that should be
explode( ” “, $fullname);
I shall kill my teacher. I could stick with C/C++ syntax all these years…
despite the few negative comments I really reflect you have a natural talent for making tutorials, quick, concise confident
you’re gonna kill me for saying this (I know u said at the beginning it could be done simpler) but I would have just used
explode($fullname, ” “);
lol
it’s a matter of taste and I’m with the video maker on this one
endof isnt better/newer/more compliant or anything, it’s just a different way
I reflect your syntax is out-of-date – doesn’t PHP use “for endfor;” now? Just asking.
really agree, your tutorials are fantastic and useful and you helped me a lot with getting ongoing, thanks for that.
To clear this all up, these tutorials are free. Don’t watch them if you know you’re not going to find them helpful!
Yes, please don’t write useless tutorials, if you will make a touch basic at least you should have suggested better script.
helped a lot to get myself ongoing with php
yeah man i like your all video tutorials very fantastic and im also watching your tutorials this is the better teaching way that your teaching us thanks alot to you out standing man
GoRRaNNNNN you are incorrect,
With this kind of tutorials is simple to learn the “basics” of php. With the basics is more simple to have “creativity” to do things more complex.
Mate. Ignore all negative comments like that.
I really bought myself a book on PHP around two years ago, books seem to simply talk about the code, and do not demonstrate how to code. Through watching your tutorials I have learned a lot more in an hour than I learned after days of reading the book I bought, what’s more, your tutorials cost nothing, the book was a waste of $40.
So why are there teachers in the world? Giving people answers is not what I’m doing, I’m teaching people through visual and audio based tutorials, which enhance a learning experience. Many people find books hard to learn from, I certainly did. Video tutorials have always helped me, now I’m giving that back to a convergence of PHP developers looking to learn this way.
WTF? :S For this “programing” you need 9 minutes? :S
For this code you can turn off your brain and do it in 2 minutes :S
Now everyone make “tutorials” :S
And the more vital thing is that some people say: “fantastic tutorials”! WTF? :S
“Give a fish to man and he will eat for a day, but learn him fishing and he will eat whole life…”
If you want to learn php skip “tutorials”, find some books about php and start learning…
This tutorials just KILL your creativity…
Alex, thanks for doing this! Very clear and much valued.!!
first of all thanks for the tutroial it’s fantastic. I glad to see someone else making mistakes when they code.
anyway can I just top out that this program users functions in the EXIF (mb_substr) extension of PHP5 and you need to install the extension for the program to work.
The tutorial does exactly what you said and helps give us a better understanding of php programming. Thanks!