Skip to content
/ fixes Public

The bunch of functions extending the PHP standard library.

License

Notifications You must be signed in to change notification settings

phpable/fixes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

The bunch of functions extending the PHP standard library.

Requirements

  • PHP >= 8.0.0

Install

There's a simple way to install able/fixes into your project via Composer:

composer require able/fixes

The list of function

PCRE functions

  • preg_count

Takes two arguments and returns the count of matches found by a pattern. The behavior is identical to the standard preg_replace function.

Declaration:

function preg_count(string $pattern, string $subject): int

Example:

$count = preg_count('/%[^%]/', '|%s|%s|%%|');
echo  $count;

// 2

Array functions

  • array_merge_recursive_distinct(array $Original, array $Source): array

Filesystem functions

  • file_purge(string $filename, int $flags = 0, $context = null): false|int

License

This package is released under the MIT license.

About

The bunch of functions extending the PHP standard library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages