tutaslot.blogg.se

One hour one life server
One hour one life server







This example uses some operators (increment, string concatenation, arithmetic) a couple of string functions and it also shows how to write a user-defined function: If you need some inspiration, look at the following example: It reads a value from the request string (like an input value from an HTML form) and prints the even characters only. It can also be something completely useless but funny. You can do whatever you want, just think of a nice functionality to include in your backend and try to implement it.

one hour one life server

You are going to add some additional functionalities using operators, custom function definitions and string-handling functions. Now get back to your exercise from day 1 (you DID it, right…?) Strings are extensively used in web programming and t he PHP standard library includes many string-handling functions that you will use very often. Your goal is to discover what you can do with PHP and understand its potential. It’s perfectly fine if you don’t remember everything (or even half of what you read). Just focus on the most important operators, the ones you will use from the start: If you have some experience with any programming language, I’m sure you already know what operators and functions are.Īnd if you do not, don’t worry: they are very intuitive concepts and you’ll grasp them very quickly.įirst, read the operators documentation to understand what operators are and how they work in PHP. When you’re done, move on to the next step. You’re free to read more introduction chapters if you want, but it’s not strictly necessary. For now, it’s important that you understand how PHP works and what its main features are.

one hour one life server

For now, focus on just these three pages:Ī short practical introduction to variables and types (5 minutes read)Īn introduction to user-defined functions (10 minutes read)ĭon’t worry if you can’t remember everything you just read. You will go back to this section quite often. The next three pages are taken from the Language Reference section. Some more practical examples to get a grasp of the language capabilities (10 minutes read)Ī quick HTML form integration tutorial, useful to understand how HTML and PHP relate to each other (5 minutes read)

one hour one life server

Be sure to read them in order:Ī bit more theoretical introduction (5 minutes read)Ī “Hello World” tutorial plus some basic suggestions (10 minutes read) They contain both theory and practical tutorials that will let you understand how PHP works. The first five pages are taken from the Introduction chapter.









One hour one life server