What is the difference in function and directive?

Asked

Viewed 241 times

0

How do I know what a PHP function is, what a directive is, what a module is and what a library is?

I’m starting in PHP, I have some questions that maybe for many are basic, but for many others is the beginning.

  • What is the context of the directive? Give an example of the directive you saw.

  • For example what I see in info php, that information as it is called ?

  • In php.ini what is that information?

  • @Welliton. O The answer solved your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site.

1 answer

2

I recommend reading the documentation. Yes, all of it. I know that almost nobody will, but it’s still the ideal.

What’s in the php.ini nothing to do with the language. That’s PHP environment configuration. There are parameters for how PHP should work. What should be loaded, whether or not to do something, the limits of some features, where to find certain things that PHP needs, things like this. Then you would have to see specific doubts or study the documentation of php.ini.

It is possible change settings while running.

Functions are snippets of code that execute an algorithm and usually produce a result. Has been answered.

Library has been answered.

Module also. And specifically for PHP.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.