Skip to content

feat(utils): add Str class to utils#4

Merged
wd006 merged 2 commits into
mainfrom
feat/utils/implement-str
Jan 27, 2026
Merged

feat(utils): add Str class to utils#4
wd006 merged 2 commits into
mainfrom
feat/utils/implement-str

Conversation

@wd006
Copy link
Copy Markdown
Owner

@wd006 wd006 commented Jan 27, 2026

Overview

A class named Str has been added to the utilities.

Key Changes

  • random: A function that returns a random string of a desired length has been added.

How to Test

  1. Create a temporary file (e.g. test.php) in the root directory.
  2. Paste the following code:
<?php

require_once __DIR__ . '/init.php'; 

$randomString = Str::random(10);

echo "Randomized: " . $randomString . "<br>";
echo "Length: " . strlen($randomString);
  1. Run the script via browser or terminal.
  2. Verify that the output string is 10 characters long.

wd006 added 2 commits January 27, 2026 00:32
Str class created for string operations
"random" function that returns a randomized string of the desired length
 was created within Str.
@wd006 wd006 merged commit ea9c0b7 into main Jan 27, 2026
@wd006 wd006 deleted the feat/utils/implement-str branch January 27, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant