In PHP, to end a script area, use? Or? (To add a new row ). In the above program, you need to add additional line breaks in each PHP area.
What should I do if I want to add a new row?
In PHP, to end a script area, use "?> "Or"?> "(To add a new row ). In the above program, you need to add additional line breaks in each PHP area.
Why does PHP look like this? Because when formatted as HTML, you do not need a new line. But when you generate a very long line of source code, it will make it very difficult for you to read.
When I run the following script, it will output an error message. what should I do?
- Function myfunc ($ argument ){
- Echo $ argument + 10;
- }
- $ Variable = 10;
- Echo "myfunc ($ variable) =". myfunc ($ variable );
Why? To return the result of a custom function, you need to use return to return the result, rather than echo function.
How do I find all predefined PHP values?
The best way is to create a new page and use And load it in the browser. It displays all the PHP parameter information, environment variables, specific variables of the WEB server, and HTTP-related variables. The main reason for not placing the complete variable value in the file is that it varies with the server.
PHP and IIS cannot be used together?
It is confirmed that all users who run PHP scripts have the right to run php.exe! IIS uses anonymous (anonymous) as the running account. This account number must have the right to run php.exe. Make IIS aware of the PHP engine.
What is the difference between the "dl ()" function and directly configuring php. ini?
Using dl is dynamic, while directly compiling is to compile the function directly into php, which is more efficient, but the former is more flexible to deploy.