PHP code example of scolib / attributes
1. Go to this page and download the library: Download scolib/attributes library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
scolib / attributes example snippets
/**
* Get the specified log value.
*
* @param null|string $key
* @param mixed $default
*
* @return mixed
*/
public function getAttribute($key = null, $default = null)
/**
* Set a given log value.
*
* @param array|string $key
* @param mixed $value
*
* @return bool
*/
public function setAttribute($key, $value = null)
/**
* @param string|int $key
*
* @return bool
*/
public function existsAttribute($key)
/**
* @param string|array $keys
*
* @return bool
*/
public function hasAttribute($keys)