prefix_value()

Description

Helper function to quickly build a list of values, all prefixed the same way.

```php
$fieldXs = array_map(prefix_value('field'), [3, 88]);
```

Parameters

ColumnTypeDefaultDescription
$prefix: string > $prefix . $value; } /** * Utility function to check string is a valid date/time with a specific format. * * @param string $datetime Date/time value * @param string $format The format that date/time value should be in. {@see https://www.php.net/manual/en/datetimeimmutable.createfromformat.php} * @return boolean */ function validateDatetimestring $datetime
$format string
$datetime;
$needle
$prefix string Prefix value to prepend.

This article was last updated 8th June 2025 17:35 Europe/London time based on the source file dated 30th May 2025 09:45 Europe/London time.