M
M
Maxim Osadchy2018-02-14 13:42:07
PHP
Maxim Osadchy, 2018-02-14 13:42:07

Do PHP developers need to know C?

Hello!
Recently, at an interview for a junior php position, I was asked how php arrays are arranged under the hood, that is, a question about knowing hash tables in the C language.
Here are a few questions:
1. Does a php developer need to know c? If yes, at what level?
2. Does a junior php developer need to know c? If yes, at what level?
In case you think it is necessary - throw a couple of links to good literature on the topic.
Thank you.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
Maxim, 2018-02-14
@Mx21

Not necessary. Learn how design patterns and frameworks work better. Try to understand why and why this is done. And, those who require knowledge of C when applying for a juna php-shnik, went to hell.

S
Saboteur, 2018-02-14
@saboteur_kiev

"how php arrays are arranged under the hood, i.e. a question about knowledge of hash tables in the C language."
Knowing how arrays are arranged in php under the hood and knowing hash tables in C are completely different things.
The first is to superficially understand the structure, how they are stored, what the data structures for storing arrays consist of.
The second is a non-php task at all.

I
Ivan, 2018-02-14
@LiguidCool

Now, in general, no one really needs to know purely C. Even controllers can already be written on a lot of things besides Sei.
Everything else, closer to everyday tasks, is sawn on "forks" - C #, C ++, etc.
In general, PHP has a similar syntax and I would say PHP is a very simplified C.

A
Artemio Vegas, 2018-02-15
@ArtemioVegas

By the way, here is an article about the internal implementation of arrays in php https
://nikic.github.io/2012/03/28/Understanding-P...
needs.
I think that php june does not need to know C, apparently these are just pens of this employer.

T
turkishjoe283, 2021-05-12
@turkishjoe283

My opinion
Does a php developer need C to solve everyday tasks at work - no
Is it possible to get a job (especially as a junior) without knowledge of C - yes, and very rarely there are questions for interviews in C
Will knowledge of C php be superfluous for a programmer - no.
Reasons:
- It's easier to switch to other languages
​​- You will understand programs more deeply, and this can help you solve specific problems and broaden your horizons in general.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question