$small = substr($big, 0, 100);
For String Manipulation here is a page with a lot of function that might help you in your future work.
More Related Contents:
- How can I combine two strings together in PHP?
- How to generate all permutations of a string in PHP?
- Remove multiple whitespaces
- Get PHP class property by string
- php String Concatenation, Performance
- PHP convert string to hex and hex to string
- Converting an integer to a string in PHP
- How to convert string to boolean php
- PHP substring extraction. Get the string before the first ‘/’ or the whole string
- Is a new line = \n OR \r\n?
- Best Practices: working with long, multiline strings in PHP?
- Title case a string containing one or more last names while handling names with apostrophes
- Php – regular expression to check if the string has chinese chars
- Escape string to use in mail()
- How can I split a string in PHP at the nth occurrence of a needle?
- Getting the first character of a string with $str[0]
- How to convert a string to JSON object in PHP
- PHP: Split multibyte string (word) into separate characters
- What does the b in front of string literals do?
- Highlight keywords in a paragraph
- Search and replace multiple values with multiple/different values in PHP5?
- Explode string into array with no empty elements?
- Get the sum of all digits in a numeric string
- Close open HTML tags in a string
- Reverse the letters in each word of a string
- How to separate letters and digits from a string in php
- How does PHP compare strings with comparison operators?
- Remove first 4 characters of a string with PHP
- PHP extract link from tag [duplicate]
- PHP Find all occurrences of a substring in a string