Skip to content

Instantly share code, notes, and snippets.

View DawTaylor's full-sized avatar
👀

Adalberto Taylor DawTaylor

👀
  • Águas de Lindóia - SP - Brazil
  • 02:59 (UTC -03:00)
View GitHub Profile
@DawTaylor
DawTaylor / get_sample.php
Last active October 10, 2016 14:39
PHP $_GET sample for a simple URL reversing
<?php
//Saves $_GET['url'] parameter to var
$reverseURL = $_GET['url'];
//Logs the reverse URL to page
echo "Reverse URL => " . $reverseURL . "<br />";
//Reverts the $reverseURL string and saves it to var
$regularURL = strrev($reverseURL);
'use strict'
let f = process.argv[1]
console.log('Double negation usage sample. (!!)')
console.log('!var => ', !f)
console.log('!!var => ', !!f)