Can php have zero foundation?
php can be learned from scratch.
For students with zero foundation, learning PHP definitely requires perseverance. Learning any language cannot be achieved overnight, but requires a lot of time and energy to learn. It doesn’t mean that you will be able to learn it just by enrolling in a certain class. This is by no means to discourage students who want to pursue a career in PHP. Thinking about learning PHP, there are so many things to be exposed to. Not only the front-end knowledge such as HTML tags, div css, and js need to be understood, but also the PHP language, samrty templates, ajax, jquery, mysql, linux, etc. need to be learned and understood. , even application tools such as frameworks cannot be mastered in a day or two.
Is it difficult to learn PHP?
Disaster! But if any technology can be easily learned, it will not be called a technology, because in that case, the job will be too replaceable. Technology is more valuable only if it is difficult to learn. Are there any tricks to learning PHP? Of course there are, which is what I want to explain in this article.
The first key point in php learning: mentality.
Although the PHP language market is currently booming, and the PHP language is easier to learn than other languages, don’t think of PHP as too simple, and don’t believe in the propaganda of the training school, as if you have zero foundation. People can also learn php casually.
There must be many cases of failure. Of course, we should not think of PHP as too difficult. Since you want to engage in work in this area, you must be prepared to go all out and break the boat. If you can’t learn it in 4 months, then stick with it until 5 months. If you still can’t learn it in 5 months, then stick with it until 6 months (you need a little bit of turtle spirit). One day, you will fully master PHP knowledge and get a salary you are satisfied with.
The second key point in php learning: learning method.
Here, I suggest you sign up for a class. It is too difficult for one person to learn PHP. If a group of people come to learn together, it can create an atmosphere for learning PHP. With teachers to teach, problems encountered in learning PHP can also be solved.
Here, you will encounter a problem, that is, in a class, there are people with zero foundation and those who have been engaged in this field. The level of php can be said to be uneven. If you are a student with zero foundation studying php, how do you keep up with the school's lectures? Here is the learning method I am going to talk about. Before we sign up for the class, we can first download relevant videos about PHP learning online.
The third key point of php learning: that is to persist, persist, and resist temptation.
The comparison of ASP/PHP/JSP/.NET may make us newbies at a loss. Maybe after learning half of PHP, we start to think about C# again, or some people say that JAVA is very strong. At this time, we absolutely cannot Shaken, even if we really want to learn, we have to learn PHP and then learn it again. The most undesirable thing is to change your mind when you see something new. This is the principle of breaking the corn with a bear. If you often give up midway, you will gain nothing and waste a lot of time and experience. When we give up PHP after spending a lot of energy, I believe we will feel sad and confused about the future. If you don’t want to have this experience, then stick to learning php.
For more PHP related knowledge, please visit PHP Chinese website!
The above is the detailed content of Can I have zero basic knowledge of PHP?. For more information, please follow other related articles on the PHP Chinese website!

php把负数转为正整数的方法:1、使用abs()函数将负数转为正数,使用intval()函数对正数取整,转为正整数,语法“intval(abs($number))”;2、利用“~”位运算符将负数取反加一,语法“~$number + 1”。

实现方法:1、使用“sleep(延迟秒数)”语句,可延迟执行函数若干秒;2、使用“time_nanosleep(延迟秒数,延迟纳秒数)”语句,可延迟执行函数若干秒和纳秒;3、使用“time_sleep_until(time()+7)”语句。

php除以100保留两位小数的方法:1、利用“/”运算符进行除法运算,语法“数值 / 100”;2、使用“number_format(除法结果, 2)”或“sprintf("%.2f",除法结果)”语句进行四舍五入的处理值,并保留两位小数。

php字符串有下标。在PHP中,下标不仅可以应用于数组和对象,还可应用于字符串,利用字符串的下标和中括号“[]”可以访问指定索引位置的字符,并对该字符进行读写,语法“字符串名[下标值]”;字符串的下标值(索引值)只能是整数类型,起始值为0。

判断方法:1、使用“strtotime("年-月-日")”语句将给定的年月日转换为时间戳格式;2、用“date("z",时间戳)+1”语句计算指定时间戳是一年的第几天。date()返回的天数是从0开始计算的,因此真实天数需要在此基础上加1。

在php中,可以使用substr()函数来读取字符串后几个字符,只需要将该函数的第二个参数设置为负值,第三个参数省略即可;语法为“substr(字符串,-n)”,表示读取从字符串结尾处向前数第n个字符开始,直到字符串结尾的全部字符。

方法:1、用“str_replace(" ","其他字符",$str)”语句,可将nbsp符替换为其他字符;2、用“preg_replace("/(\s|\ \;||\xc2\xa0)/","其他字符",$str)”语句。

php判断有没有小数点的方法:1、使用“strpos(数字字符串,'.')”语法,如果返回小数点在字符串中第一次出现的位置,则有小数点;2、使用“strrpos(数字字符串,'.')”语句,如果返回小数点在字符串中最后一次出现的位置,则有。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Linux new version
SublimeText3 Linux latest version

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
