Skip to content

Instantly share code, notes, and snippets.

View nikita2206's full-sized avatar

Nikita Nefedov nikita2206

  • Amsterdam, Netherlands
View GitHub Profile
phpinfo()
PHP Version => 5.4.9
System => Linux nikita2206-N56VJ 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:10 UTC 2013 x86_64
Build Date => Feb 12 2013 17:13:16
Configure Command => './configure' '--enable-cli' '--enable-fpm' '--enable-intl' '--enable-pdo' '--with-pdo-pgsql' '--enable-sockets' '--with-curl' '--with-pgsql' '--with-openssl'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
@nikita2206
nikita2206 / gist:3035134
Created July 2, 2012 19:26 — forked from withremote/gist:3034778
If String Contains
<?php
if(!function_exists('if_string_contains'))
{
function if_string_contains($needle,$haystack) {
if (is_array($needle)) {
foreach ($needle as $n) {
if (strpos($haystack, $n) !== false) {
return true;