CodefyPHP FrameworkCodefyPHP Framework
  • Home
  • Community
    • Forum
    • Github
    • YouTube
  • News
  • Home
  • Community
    • Forum
    • Github
    • YouTube
  • News
home/Knowledge Base/Helpers/compact_unique_array
Popular Search:installation, codex, mail

compact_unique_array

23 views 0

Written by Joshua
August 14, 2024

Description

Strips out all duplicate values and compact the array.

Usage

<?php

use function Qubus\Support\Helpers\compact_unique_array;

compact_unique_array(array $a): array;

Parameters

$a (array) (required) An array to be compacted.

Return Value

(bool) The unique array after its been compacted.

Edit on Github

Last Updated on August 14, 2024 by Joshua

Related Articles
  • mail
  • sort_element_callback
  • php_where
  • php_like
  • convert_array_to_object
  • truncate_string

Didn't find your answer? Check out the Forum

Leave A Comment Cancel reply

You must be logged in to post a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  truncate_string

convert_array_to_object  

  • Copyright 2025 CodefyPHP.com. All Rights Reserved

Popular Search:installation, codex, mail