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.