Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get name of parent dir php

<?php
  //OUTPUT name of the parent dir no forward or backward slashes
  //USAGE add the code below to the script you need the parent DIR of, that simple.
  basename(__DIR__);
  //OUTPUT: parentDIR 
?>
Comment

PREVIOUS NEXT
Code Example
Php :: gd extension docker php 
Php :: php round down 
Php :: get current term id 
Php :: formate date using carbon in laravel blade 
Php :: php shorthand if isset post 
Php :: laravel 9 route controller group 
Php :: Add 2 days to the current date in PHP 
Php :: pasar datetime a string php 
Php :: laravel add values to request 
Php :: styling not working in laravel breeze 
Php :: laravel doesNotHave in model 
Php :: order By Asc in laravbel 
Php :: php get day from date 
Php :: lravel redirect with error 
Php :: How to install php-fpm 
Php :: laravel collection flatten 
Php :: passed to LcobucciJWTSignerHmac::doVerify() must be an instance of LcobucciJWTSignerKey, null given, 
Php :: cast array to object php 
Php :: php change sting to caps 
Php :: insert php mysql 
Php :: php set error log file 
Php :: php datetime object get unix timestamp 
Php :: php redirect to another page 
Php :: laravel delete confirm link 
Php :: Get html by ajax 
Php :: highlight search text in php 
Php :: how add confirmation box in php before deleting 
Php :: check if date between two dates laravel eloquent 
Php :: Add Laravel .env variable to Vue component 
Php :: dynamic alert php 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =