Skip to content

Instantly share code, notes, and snippets.

@Zeronights
Zeronights / ExtendedReflectionClass.php
Last active Dec 12, 2020
PHP: Getting use statements and aliases from class
View ExtendedReflectionClass.php
<?php
/**
* The MIT License (MIT)
*
* Copyright (c) Ozgur (Ozzy) Giritli <ozgur@zeronights.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
@Zeronights
Zeronights / array_keys_exist.php
Created Nov 21, 2014
[php5.6] array_keys_exist
View array_keys_exist.php
<?php
if (!function_exists('array_keys_exist')) {
/**
* Checks if given keys or indexes exist in the array.
*
* @author Ozgur Giritli <ozgur@zeronights.com>
*