Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 541 Bytes

str_cipher_caesar.md

File metadata and controls

35 lines (21 loc) · 541 Bytes

Description

Transform a string by shifting each character up or down the alphabet.

str_cipher_caesar(string $string, string $shift): bool

Parameters

string

The string to transform

shift

The number of spaces each letter will be moved up or down the alphabet

Returns

Returns a new string, where each letter has been moved up or down the alphabet

Examples

Example # 1 Example uses of str_cipher_caesar()

echo str_cipher_caesar('Hello', 3);

The above example will output:

Khoor