View tictactoe.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function renderGame($state, $activeCell, $player) { | |
$output = ''; | |
$output .= 'Player:' . $player . PHP_EOL; | |
foreach ($state as $x => $line) { | |
$output .= '|'; | |
foreach ($line as $y => $item) { |
View Config Merge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require './vendor/autoload.php'; | |
// Set up the directories needed. | |
$parentDirectory = 'config/siteone'; | |
$siblingDirectory = 'config/sitetwo'; | |
$destinationDirectory = 'config/default'; |
View Googl.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Googl | |
* | |
* For more information on this file and how to use the class please visit | |
* http://www.hashbangcode.com/blog/googl-url-shortening-service-class-php-528.html | |
* | |
* PHP version 5 | |
* |
NewerOlder