Skip to content

Instantly share code, notes, and snippets.

@Zeronights
Zeronights / array_keys_exist.php
Created November 21, 2014 10:35
[php5.6] array_keys_exist
<?php
if (!function_exists('array_keys_exist')) {
/**
* Checks if given keys or indexes exist in the array.
*
* @author Ozgur Giritli <ozgur@zeronights.com>
*
@Zeronights
Zeronights / ExtendedReflectionClass.php
Last active April 16, 2024 12:33
PHP: Getting use statements and aliases from class
<?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