Table of Contents
回复内容:
Home Backend Development PHP Tutorial 学PHP要拿到年薪$40w,至少要熟练掌握哪些知识?

学PHP要拿到年薪$40w,至少要熟练掌握哪些知识?

Jun 17, 2016 am 08:30 AM

感觉现在学的比较混乱,想理一理学习脉络。q

回复内容:

必须匿名了,这个问题很正经的,但是看了题目修改日志和底下众多的嘲讽以后,我已经没有实名来回答的勇气了。

其实,题主真正想问的是PHP程序员的成长路径和未来可能的天花板所在。年薪40万也好,月薪20万也好,只是一个量化指标,我是这么理解的。

本帖所撰写的2015年6月,正是一个创业氛围火爆空前的绝佳时机,PHP因为其快速原型能力,在市场上倍受青睐,绝大部分公司,都是一将难求。

那么PHP缘何能够受到大家追捧和喜爱,又为什么饱受嘲讽?

PHP的语法类似C语言,又融合了面相对象的编程范型的支持,5.3.0以后,又融入了函数式编程的一部分特性,可见其语言层面,在着力去讨好各个层次和各个范型的程序员。于是,PHP有着极低的入门门槛,掌握各种语言的程序员,都可以轻松入门PHP,按照自己原来喜爱的编程范型去解决问题。

PHP到目前为止,没有引入多线程的能力,主要指在Web场景下(命令行下可以使用类似pcntl和libevent等等东西实现各种想实现的),一般都是单进程单线程,伺服一个请求结束,即回收场景,默认不进行持久化(连接复用,对象复用等),因此,PHP将其部署的速度提到了极致,简单到了拷贝覆盖文件就行了,这带来了开发迭代效率的极大提升。

PHP基本不怎么严谨,但是采用了run 然后restart的形式来避免各种泄漏和问题,导致项目整体健壮性也有很大的保障,尤其对程序员没有提出太高的要求。这样,团队一般不需要太多的代价,就可以组建起来,快速干活。

我觉得,对低劣的容忍,可能是PHP备受嘲讽的真正原因。其实,在PHP世界,也可以严谨地做事,但是,因为PHP的高容忍性,往往不容易培养具备严谨性格的程序员。所以,这个领域的程序员,总是显得不靠谱的居多数(没什么恶意,别喷我)。

那么问题来了,PHP程序员,怎么提升自己的薪资待遇?其实,薪资待遇来自于对程序员价值的评估,你能为企业带来多大价值,这个价值就能转化成薪资待遇。那么怎么为企业带来更大的价值?你需要具备更大的能力。

PHP只是个语言而已,而技术是相通的。PHP本身没什么太多知识点。

比如框架,设计模式,缓存,消息队列,这些统统可以脱离PHP单独存在的。所以每一种能力,都是跟PHP没什么关系的,只是有些人喜欢用PHP而已。所以,就看掌握了多少技术,能处理多大的问题了。

1. 接入类型的问题,比如海量的长连接,怎么搞

2. 高并发运算问题,秒杀一类的东西,怎么搞

3. 大规模事务问题,怎么搞

然后怎么海量运维,海量部署,怎么容灾恢复,怎么冷热备,然后还有最关键一块,安全问题,不是简简单单的注入,跨站,而是系统性的安全,各个环节的安全。

除了纯技术,还有管理层面,也要有所修养,因为大规模技术问题,一个人搞不定的。你必须带着别人一起搞,一个人能写好代码,怎么控制一群人写代码。

最后就是取舍,我知道屠龙之术,但是杀鸡就选个小刀,打蚊子就用电蚊拍,直升机来了,我马上得抄起火箭筒。

我觉得PHP程序员,往往就是解决问题专家,从最前的网页交互体验,到最后端的性能存储,都有掌控力,那薪资基本上就有保障,现在市场上,这样的人应该也绝对是40万以上的,而且企业就算开出这个价,也不一定挖得到这样的人。

以上所说,本人未必能做到,各种技术术语也未必严谨,薪水已然超过了吧,但是还需要继续努力。一点点心得,分享给大家。 看了看编辑日志,感觉醉了。。。月薪20W已经不是学什么语言的问题了,需要很多方面的提升,如果说非要说学习PHP到月薪20W,还是回头算算汇率吧,我觉得换成日元的话似乎还是可以的。。。 我说点现实的。
  1. 你很可能必须在大城市
  2. 你很可能必须在一线受资本青睐的行业,比如金融电商
  3. 你不能只懂PHP,你必须很熟悉Web整个技术栈,而不只是知道如何用PHP框架编程
  4. 你必须有大型网站的架构实力,这是以3为基础的,暂时没有实力也必须有资历
  5. 你负责的东西必须服务至少公司三个部门以上,而且是核心部门
  6. 你的职位很可能到经理或者总监级别
  7. 你的运气要足够好

    找工作-互联网招聘求职网
日薪20万,年薪也才7300万,通过合法的途径完全可以做到,其他答主不要误人子弟。

当然,只会PHP是不够的,最好学习一下LAMP技术框架,就是掌握一下Linux、Apache、MySQL、PHP,然后做一个网站,当你的网站拥有几亿用户的时候,就差不多能赚日薪20万了。之前有个美国的80后就是这么搞的,现在身价100多亿美元吧。

题主加油。 小伙子是不是撸多了,手抖的这么厉害→_→ 确实学的挺乱的。。。 确实很混乱 日薪20w啊。 那你得看薪20w愿意不。


题主改题目啦。。唉 去非死不可。 我听说有个写PHP的家伙每天开玛莎拉蒂上班,你可以参考下:Rasmus Lerdorf_百度百科
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How does session hijacking work and how can you mitigate it in PHP? How does session hijacking work and how can you mitigate it in PHP? Apr 06, 2025 am 12:02 AM

Session hijacking can be achieved through the following steps: 1. Obtain the session ID, 2. Use the session ID, 3. Keep the session active. The methods to prevent session hijacking in PHP include: 1. Use the session_regenerate_id() function to regenerate the session ID, 2. Store session data through the database, 3. Ensure that all session data is transmitted through HTTPS.

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Describe the SOLID principles and how they apply to PHP development. Describe the SOLID principles and how they apply to PHP development. Apr 03, 2025 am 12:04 AM

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to debug CLI mode in PHPStorm? How to debug CLI mode in PHPStorm? Apr 01, 2025 pm 02:57 PM

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

How to automatically set permissions of unixsocket after system restart? How to automatically set permissions of unixsocket after system restart? Mar 31, 2025 pm 11:54 PM

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

How to send a POST request containing JSON data using PHP's cURL library? How to send a POST request containing JSON data using PHP's cURL library? Apr 01, 2025 pm 03:12 PM

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

See all articles