Skip to content

Instantly share code, notes, and snippets.

View jfranciscos4's full-sized avatar
💭
I may be slow to respond.

J.F. Silva IV jfranciscos4

💭
I may be slow to respond.
View GitHub Profile
@jfranciscos4
jfranciscos4 / build.xml
Created November 1, 2012 04:50 — forked from casimiroarruda/build.xml
Arquivo de configuração para o phing
<?xml version="1.0" encoding="UTF-8"?>
<project name="TheProject" default="build" basedir=".">
<!-- Altere estas propriedades adequando-as ao seu projeto -->
<property name="application.library" value="${project.basedir}/library"/>
<property name="application.tests" value="${project.basedir}/tests"/>
<property name="application.builddir" value="${project.basedir}/build"/>
<target name="build"
@jfranciscos4
jfranciscos4 / array_compare
Created October 25, 2012 23:30
Compara dois array (key and values)
<?php
// [email protected] 17-Oct-2012 08:31
// Compares two arrays- keys and values (as strings) must match.
// Keys and order must be the same to be equal.
function arraysEqual($arr1, $arr2){
if(count($arr1) != count($arr2)){
return(FALSE);
}else{
$arrStr1 = serialize($arr1);
$arrStr2 = serialize($arr2);