Reference

Guide

F::similar()

Tries to find similar or the same file by building a glob based on the path

F::similar(string $path, string $pattern = '*'): array

Parameters

Name Type Default Description
$path string
$pattern string '*'

Return type

array

Source code

kirby/src/Toolkit/F.php#L638