Tag Archives: String

PHP (首)字母大写操作

所有字母大写/小写; 单词首字母大写; 第一个字母大写/小写:
$str = "This is liguoliang dot com";

echo "全部变小写 strtolower: ".strtolower($str);
echo "第一个字母

More…

Posted in PHP | Tagged , , , | Leave a comment

Java/ActionScript – String.split(), 及For in 小结

Java 5.0中:
public String[] split(String regex)
    根据给定正则表达式的匹配拆分此字符串。
    该方法的作用就像是使用给定的表达式和限制参数 0 来调用两参数 split 方法。因

More…

Posted in ActionScript, Java | Tagged , , , | Leave a comment

Java String小结

String
String对象是不可改变的.
String s1 = “s”;
改语句声明了一个指向对象的引用, 名为s1, 目前指向一个String对象, 其内容为”s”;
String s2 = “s”;
上一句则声明一个指

More…

Posted in Java | Tagged , , | Leave a comment