Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Original array
- Array
- (
- [10] => Array
- (
- [title] => Hello world!
- [ssm_featured_post_id] => 1
- )
- )
- New array
- Array
- (
- [0] => Array
- (
- [title] => awesome post
- [ssm_featured_post_id] => 73
- )
- [1] => Array
- (
- [title] => this is the newest post
- [ssm_featured_post_id] => 70
- )
- [2] => Array
- (
- [title] => sdfsfsdf
- [ssm_featured_post_id] => 63
- )
- [3] => Array
- (
- [title] => test
- [ssm_featured_post_id] => 49
- )
- [4] => Array
- (
- [title] => Hello world!
- [ssm_featured_post_id] => 1
- )
- )
- AFter Merge
- Array
- (
- [0] => Array
- (
- [title] => Hello world!
- [ssm_featured_post_id] => 1
- )
- [1] => Array
- (
- [title] => awesome post
- [ssm_featured_post_id] => 73
- )
- [2] => Array
- (
- [title] => this is the newest post
- [ssm_featured_post_id] => 70
- )
- [3] => Array
- (
- [title] => sdfsfsdf
- [ssm_featured_post_id] => 63
- )
- [4] => Array
- (
- [title] => test
- [ssm_featured_post_id] => 49
- )
- [5] => Array
- (
- [title] => Hello world!
- [ssm_featured_post_id] => 1
- )
- )
- AFter uasort
- Array
- (
- [0] => Array
- (
- [title] => Hello world!
- [ssm_featured_post_id] => 1
- )
- [5] => Array
- (
- [title] => Hello world!
- [ssm_featured_post_id] => 1
- )
- [4] => Array
- (
- [title] => test
- [ssm_featured_post_id] => 49
- )
- [3] => Array
- (
- [title] => sdfsfsdf
- [ssm_featured_post_id] => 63
- )
- [2] => Array
- (
- [title] => this is the newest post
- [ssm_featured_post_id] => 70
- )
- [1] => Array
- (
- [title] => awesome post
- [ssm_featured_post_id] => 73
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement