Home > Backend Development > PHP Tutorial > PHP common constants

PHP common constants

WBOY
Release: 2016-07-29 08:57:14
Original
927 people have browsed it

1.FILE
The output in app.php is as follows

<code><span>echo</span><span>__FILE__</span>;</code>
Copy after login

The result is: D:wwwlaravel5.1bootstrapapp.php

2, DIR
Assume that the code in 1 is in the bootstrap directory

<code><span>echo</span><span>__DIR__</span>; <span>// 等同于 dirname(__FILE__)</span></code>
Copy after login

The result is: D:wwwlaravel5.1bootstrap

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above has introduced the commonly used constants in PHP, including related content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template