Answers for "base_path php"

PHP
0

php basename from path

<?php
  $path = "/testweb/home.php";

  $filename = basename($path);
  $filename_without_php_extension = basename($path,".php");
Posted by: Guest on April-16-2021
0

base_path()

$path = base_path();

$path = base_path('vendor/bin');
Posted by: Guest on October-20-2021

Browse Popular Code Answers by Language