PHP code example of abdellahramadan / string
1. Go to this page and download the library: Download abdellahramadan/string library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
abdellahramadan / string example snippets
$text = Strings::slug("this is a simple slug");
echo $text; // this-is-a-simple-slug
$text = "is a cool language";
echo $completeText = Strings::prefix($text, "PHP"); // PHP is a cool language