Skip to content

Instantly share code, notes, and snippets.

View adibbehjat's full-sized avatar

Adib Behjat adibbehjat

View GitHub Profile
<?php
function check_braces($expressions) {
for($x = 0; $x < count($expressions); $x++)
{
$open = array("{", "[", "(");
$close = array("}", "]", ")");
$key = array("{" => "}", "[" => "]", "(" => ")");
$string = $expressions[$x];