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
const SocialIcons = | |
[ | |
"glass", | |
"music", | |
"search", | |
"envelope-o", | |
"heart", | |
"star", | |
"star-o", | |
"user", |
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 Project β Classes β Methods β Properties β Functions β Variables β | |
β ββββββββββββββββββββββββ¬ββββββββββββββ¬βββββββββββββ¬βββββββββββββββ¬βββββββββββββ¬βββββββββββββ£ | |
β Akelos Framework β PascalCase β camelCase β camelCase β lower_case β lower_case β | |
β CakePHP Framework β PascalCase β camelCase β camelCase β camelCase β camelCase β | |
β CodeIgniter Framework β Proper_Case β lower_case β lower_case β lower_case β lower_case β | |
β Concrete5 CMS β PascalCase β camelCase β camelCase β lower_case β lower_case β | |
β Doctrine ORM β PascalCase β camelCase β camelCase β camelCase β camelCase β | |
β Drupal CMS β PascalCase β camelCase β camelCase β lower_case β lower_case β | |
β Joomla CMS β PascalCase β camelCase β camelCase β camelCase β camelCase β |
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
moved |
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
// dbconfig.json | |
{ | |
"server": "localhost", | |
"dbname": "cl_shop", | |
"user" : "root", | |
"pass" : "root" | |
} | |
// class definition | |
class DB { |
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
class BowlingGame { | |
private $rolls = array(); | |
private $currentRoll = 0; | |
public function __construct() { | |
for ($i = 0; $i < 21; $i++) { | |
$this->rolls[$i] = 0; | |
} | |
} |
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
public function del_slow($id) { | |
$offset = 0; | |
foreach ($this->products as $p) { | |
if ($p->getId() == $id) { | |
array_splice($this->products, $offset, 1); | |
break; | |
} | |
$offset++; | |
} | |
} |
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
/** | |
* callback for array_filter to get array without element with $id | |
*/ | |
class idNotEqual { | |
private $id; | |
function __construct($id) { | |
$this->id = $id; | |
} |
NewerOlder