Skip to content

Instantly share code, notes, and snippets.

select name from employees where id NOT IN (select managerId from employees where managerID IS NOT NULL)
select count(*) from students where firstName = 'John'
@andreaschrist27
andreaschrist27 / Pipeline.php
Created January 18, 2019 08:16
Pipeline PHP#2
<?php
class Pipeline
{
public static function make_pipeline(...$funcs)
{
return function($arg) use ($funcs)
{
foreach ($funcs as $func)
{
if(!isset($output))
@andreaschrist27
andreaschrist27 / Palindrome.php
Created January 18, 2019 06:51
Palindrome PHP#1
<?php
class Palindrome
{
public static function isPalindrome($word)
{
$wordCase = self::ignoreCase($word);
if($wordCase == strrev($wordCase))
{
return true;