Skip to content

vdw/Compare-arrays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Compare arrays

A CodeIgniter Array Helper that compares two arrays using their common (intersection) keys

This helper extends the core helper and adds a fuction that compares the values of two associative arrays based on their intersection of keys.

Usage

Copy MY_array_helper.php to application/helpers folder.

Load array helper:

$this->load->helper('array');

Use it:

if (!compare($data['article'], $this->input->post())) {

    //Do something like create a revision

}
//Then update your article

Copyright and license

Copyright (©) 2012 Dimitris Krestos. See LICENSE for details.

About

Compares two arrays using their common (intersection) keys. (codeigniter array helpers compare arrays)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages