Skip to content

String function to add prefix or suffix #47

Description

@cliffordp

Should be able to prefix/suffix a string but only if it doesn't already have the prefix.

Example:

$prefix = 'abc_';
$test = 'abc_123';
doPrefix( $test, $prefix ); // expecting 'abc_123' (no changes to $test)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions