php dynamically generates objects based on string class names
A common requirement is to obtain the name of a class from other places and generate an object of that class.
You can define a static method for the target class to generate an instance of the object, and then call the method through call_user_func or call_user_func_array. Of course, it can also be implemented through methods such as factory classes.
String processing class55202017-03-31
Introducing a php method of calling a class using a string name. Friends in need can download it for reference, or modify it and improve it into their own class. If your friends have better codes, you can send them to share with us.
String processing class50242017-03-31
Introducing a php string class commonly used in development. I hope it will be helpful to friends’ learning and practice. Friends who need it can modify it by themselves. Random string, single interception String, intercept strings in batches, Generate unique ID.
String processing class43442017-03-30
Introducing the PHP string and byte array conversion class, Convert a String string to a byte array, Convert the byte array to String type data, Convert an int to a byte array, Read an Integer type data from the specified position in the byte array, Convert a short string to a byte array, Read a Short type data from the specified position in the byte array. ##
String processing class49732017-03-27
Introduces the sensitive string replacement class implemented by PHP, including common illegal string detection, whitelist, blacklist and character replacement functions. plays a very important role in PHP program development Wide application value.
String processing class47042017-03-14
No need to install extensions, comes with dictionary, easy to use
Use scws, which many people are familiar with, and the other one is phpanalysis made by IT Plato
Please refer to the index.php file example for usage.
String processing class124782017-03-12
A class library that converts GBK and UTF8 strings into Unicode encoding. It also supports converting Unicode encoding into GBK and UTF8. Please see the instructions in the compressed file.
String processing class49222017-03-08
Slugify is a class library that converts strings into slug format. Interested friends can download it and use it in their own projects.
String processing class57212017-02-27
Stringy is a string manipulation class library with multi-byte support. Interested friends can download it and use it in their own projects.
String processing class16292017-02-27
Patchwork UTF-8 is a portable class library for processing UTF-8 format strings. Interested friends can download it and use it in their own projects.
String processing class14172017-02-27
ANSI to HTML5 A class library that converts ANSI to HTML5, ANSI to HTML5: A class library that converts ANSI to HTML5
String processing class18052017-02-27
This class library can implement
1. Convert a String to a byte array
2. Convert byte array to String type data
3. Convert an int to a byte array
4. Read an Integer type data from the specified position in the byte array
5. Convert a shor string to a byte array
6. Read a Short type data from the specified position in the byte array
Friends who need it can refer to it to facilitate everyone to learn PHP.
String processing class33582017-02-23