Squashed commit of the following:

commit 9906c2c9b23a996e30f1196e3433e78cfae19028
Author: Adil Ilhan <adilmedya@gmail.com>
Date:   Mon Sep 29 10:05:22 2014 +0300

    Removed trailing whitespace

commit d0f392e4aa71890938e744dfac925fb8fb3b6296
Author: Adil Ilhan <adilmedya@gmail.com>
Date:   Mon Sep 29 09:38:07 2014 +0300

    Changed preg_replace function with str_replace.

commit 42df6b386592a89403e5e07aaeabff8676d5c669
Author: Adil Ilhan <adilmedya@gmail.com>
Date:   Sun Sep 28 22:54:17 2014 +0300

    Spaces removed around the brackets

commit 6d1767bf509c3ea732d6a890e73e2643f5470c4e
Author: Adil Ilhan <adilmedya@gmail.com>
Date:   Sun Sep 28 22:52:07 2014 +0300

    Boolean changed to bool, doc fixed.

commit 2dfb441dcabc2f47de58859d1b6d91c9e96b0d06
Author: Adil Ilhan <adilmedya@gmail.com>
Date:   Sun Sep 28 22:41:02 2014 +0300

    Added similar array_except function for strings.
Merge branch '4.2' of github.com:adililhan/framework into 4.2