PHP_Framework

Wh1t3projects' PHP framework. Small PHP framework for building web apps and websites

View the Project on GitHub

Syntax: kernel_protected_var_addScript(string $varName, string $pathToScript)

Share a protected variable with another script.
NOTE: The variable’s name must not already exist in the target script


Parameters

$varName
The protected variable’s name to share


$pathToScript
The script to share the protected variable with. The root is the module’s folder


Return values

TRUE if successfully shared. FALSE if an error occurred.


Examples:

Create the protected variable hello, store world in it and share it with the script aScript.php

kernel_protected_var('hello','world');
kernel_protected_var_addScript('hello','aScript.php');