Home >Backend Development >PHP Tutorial >PHP common constants

PHP common constants

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-29 08:57:14971browse

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

<code><span>echo</span><span>__FILE__</span>;</code>

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>

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.

Statement:
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