Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize Online / SQLize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear
select version() as Version;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear
Copy Format Clear
<?php function setIncludeFiles($arrayInc = array()){ $incFiles = get_included_files(); if((count($arrayInc)>0)&&(count($incFiles)>0)){ $aInt = array_intersect($arrayInc,$incFiles); if(count($aInt)>0){ return false; }elseif(count($aInt)<1) { foreach($arrayInc as $inc){ if(is_file($inc)) include($inc); else{ return false; } } } }else{ return false; } } ?>
Copy Clear