给PHP菜鸟的一些建议及书籍参考指导
给PHP初学者的一些建议及书籍参考指导
前期应该了解与php语言相关的历史与行业趣闻或人物逸事,这是引发你学习这门语言的间接动力,也是你以后学习的方向与目标。最可笑的一个趣闻就是美国的*个人建站然后发布信息,可见php是一门多么容易入门的语言啊。
1. 基本的数据类型。这点php与js有点像,都是弱类型,自识别的。
数据类型里边有这么几个要特别留意,如果你以后从事程序开发的话,你青春一大半的时间将会耗在这个上面。
a. string 类型
字符串类型下面一大堆函数方法,需要掌握,比如常见的substr,strstr,trim,strrpos 等等
b. array 类型
同样下面一大堆函数方法,常见的有:array_merge, array_push,array_shift,这些。
2. 基本的流程控制语句:
在掌握单字的基础上要组合着写文章,让程序帮你去实现你实现不了的东西,这需要流程控制
if() elseif() if()
while(){}
for(){} foreach(){} 别忘了三元运算符
无论任何语言都有上面两种东西,掌握这个以后学其它语言,如鱼得水。
3. Object
这个如果深入的话要借鉴java,c#中的OOP思想,初学者可适当了解一下,没必要深究。
4. SQL
CURD基本的增删查改语句,应该熟练。mysql相关其它的知识体系应该了解。
上面一堆是php这门语言你需要掌握的,余下的就是你面试的时候增加筹码的东西:
推荐的书籍有:PHP与MySQL程序设计 第三版有电子版,最近出的第四版
1. css 经典的盒模型概念,层叠的概念。css选择器==jquery选择器。如果你仔细看,css中的层叠就是OOP中的继承,子类去覆盖父类的属性,就叫层叠样式表。margin,padding的区别,ie6,7,8,9各自的差别以及与firefox,chrome,opera,safari的差别。ie6最让人难以忘怀的haslayout到底是怎么会事,firefox下overflow:hidden的神奇妙用,有兴趣可以了解一下前端重构师这个职位。
推荐的书籍有:css那些事,精通css
2. javascript
语言的基本概念如同以上,js与php有及其相似的地方。不多说了。
他们的区别是:php操作的是数据库里边数据,而js操作的是browers解析完以后的页面数据。搞清这个可事半功倍。
另外说的是css,js开发最大的头痛就是浏览器的兼容性,这个需要行业经验来支撑你技术的发展。
推荐的书籍有:javascript高级程序设计第二版,javascript DOM高级程序设计,javascript语言精髓及编程实践 均有电子版
3. jquery
唯一说的是:没有js基础很难驾驭jquery,有js基础,再有一个jquery api即可动手。
选择器与css 2.1很相似,其实jquery的本命原来想叫cssquery,结果后来出了一个cssquery,只好改名为jquery,由此可知二者选择器的相似性。
前两天刚发布jq1.6了,已经光荣的登上版本帝宝座。
推荐的书籍有:锋利的jquery 有电子版
这么多东西,什么时间学得完,有人肯定会这样问。
我的观点是:学习是兴趣为主导,然后主要是要动手。要兴趣引导你进入个人忘怀时光流逝人程合一的两忘境界,要不青春是一怀难喝的二锅头,很难咽。其它的看个人造化了,每个人的机遇是不一样的,但是机遇是给有准备的人的。
另外个人不倡导看帖必回,但是你看到了感觉受益了或某些地方与你共鸣了,就顶一下,写程序费脑,码字费手啊,兄弟们。
------解决方案--------------------
有件事情也蛮费手的
不管如何此帖要顶.
------解决方案--------------------
这么点分数够不够分呀

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











session_start()iscrucialinPHPformanagingusersessions.1)Itinitiatesanewsessionifnoneexists,2)resumesanexistingsession,and3)setsasessioncookieforcontinuityacrossrequests,enablingapplicationslikeuserauthenticationandpersonalizedcontent.

AI can help optimize the use of Composer. Specific methods include: 1. Dependency management optimization: AI analyzes dependencies, recommends the best version combination, and reduces conflicts. 2. Automated code generation: AI generates composer.json files that conform to best practices. 3. Improve code quality: AI detects potential problems, provides optimization suggestions, and improves code quality. These methods are implemented through machine learning and natural language processing technologies to help developers improve efficiency and code quality.

MySQL functions can be used for data processing and calculation. 1. Basic usage includes string processing, date calculation and mathematical operations. 2. Advanced usage involves combining multiple functions to implement complex operations. 3. Performance optimization requires avoiding the use of functions in the WHERE clause and using GROUPBY and temporary tables.

How to achieve the effect of mouse scrolling event penetration? When we browse the web, we often encounter some special interaction designs. For example, on deepseek official website, �...

Composer is a dependency management tool for PHP, and manages project dependencies through composer.json file. 1) parse composer.json to obtain dependency information; 2) parse dependencies to form a dependency tree; 3) download and install dependencies from Packagist to the vendor directory; 4) generate composer.lock file to lock the dependency version to ensure team consistency and project maintainability.

typetraits are used in C for compile-time type checking and operation, improving code flexibility and type safety. 1) Type judgment is performed through std::is_integral and std::is_floating_point to achieve efficient type checking and output. 2) Use std::is_trivially_copyable to optimize vector copy and select different copy strategies according to the type. 3) Pay attention to compile-time decision-making, type safety, performance optimization and code complexity. Reasonable use of typetraits can greatly improve code quality.

Methods for configuring character sets and collations in MySQL include: 1. Setting the character sets and collations at the server level: SETNAMES'utf8'; SETCHARACTERSETutf8; SETCOLLATION_CONNECTION='utf8_general_ci'; 2. Create a database that uses specific character sets and collations: CREATEDATABASEexample_dbCHARACTERSETutf8COLLATEutf8_general_ci; 3. Specify character sets and collations when creating a table: CREATETABLEexample_table(idINT

Renaming a database in MySQL requires indirect methods. The steps are as follows: 1. Create a new database; 2. Use mysqldump to export the old database; 3. Import the data into the new database; 4. Delete the old database.
