Nov.24
Testing Gist Integration
Let’s test Gist integration
/** | |
* Writes a value to the current session data. | |
* | |
* @param string $key String identifier. | |
* @param mixed $value Single value or array of values to be written. | |
* @return mixed Value or array of values written. | |
* @throws InvalidArgumentTypeException Session key is not a string value. | |
*/ | |
public static function write($key, $value) | |
{ | |
if ( !is_string($key) ) | |
throw new InvalidArgumentTypeException('Session key must be string value'); | |
self::_init(); | |
$_SESSION[$key] = $value; | |
self::_age(); |
Rob Dunham
Owner at Tailored IT Solutions
I am a full stack LAMP/WAMP/LEMP(LNMP) developer with an affinity toward well-written, clean code. In addition to web development, I also have a background in providing IT services and solutions to small and medium sized businesses as well as for providing PC repair services to residential and home office clients. My diverse range of experiences places me in a unique position to provide small and medium sized businesses with all of the services of a full IT staff at a price to fit any budget.
Latest posts by Rob Dunham (see all)
- 6 Avoidable Phrases That Undermine Your Credibility - February 11, 2016
- Flat Rate vs. Hourly Billing, which one is best for designers? - November 24, 2013
- Testing Gist Integration - November 24, 2013