Skip to content

Instantly share code, notes, and snippets.

@fentie
fentie / references.txt
Last active March 22, 2016 07:13
php references
public function filter ($in, $out, &$consumed, $closing) {}
function getimagesize ($filename, array &$imageinfo = null) {}
function str_replace ($search, $replace, $subject, &$count = null) {}
function str_ireplace ($search, $replace, $subject, &$count = null) {}
function similar_text ($first, $second, &$percent = null) {}
function parse_str ($str, array &$arr = null) {}
function sscanf ($str, $format, &$_ = null) {}
function fscanf ($handle, $format, &$_ = null) {}
function exec ($command, array &$output = null, &$return_var = null) {}
function system ($command, &$return_var = null) {}

Keybase proof

I hereby claim:

  • I am fentie on github.
  • I am brianfenton (https://keybase.io/brianfenton) on keybase.
  • I have a public key whose fingerprint is 2D1C 6203 0B91 DB1E 0885 EF40 C300 D799 DC2E 727C

To claim this, I am signing this object:

@fentie
fentie / git-update.sh
Created January 28, 2014 19:54
Simple bash script to run git pull on first level of child directories
function gupdate() {
for i in */.git;
do ( cd "${i/\/.*/}"; git pull );
done # Pull updates from all git repos below your CWD. single level only
}
#credit for this goes to @climagic, who got it from someone else, but I no longer have the original link