String




# trim
# Python 
string_ = string.strip() 

# Java 
String string_ = string.trim(); 

# PHP 
$string_ = trim($stirng);



# substring 

# Python 
result = string[0:6]
# 0/6 - Index

# Java 
String sub = string.substring(0, 6);
# 0/6 - Index

# PHP 
$string_ = substr($string, 0, 6); 
# 0 - Start 
# 6 - Length 



# equals
# Java Only

boolean tf = string.equals("string"); 
# Operation ==  <- HDD address equals


# length
# Python 
lenght = len(string) 

# Java 
int i = string.lenght();

# PHP 
$int = strlen($string);

# split

# Python 
array = string.split("delimiter")

# Java 

String[] array = string.split(",");
# Parameter : Regex, limit
# Can use Regex. 

# PHP 

$array = explode("delimiter", $string);


# concat 
# Java 

String string = string.concat(string_); 
String string = string + string_; 

# Python / PHP
string = string + string_

$string = $string .  $string_; 




评论

此博客中的热门博文

Windows에서 Tensorflow Object Detection API 설치하기

Tensorflow Serving API의 Predict Server 구축에서 CPU | GPU의 속도차이

Ubuntu Linux에서 Tensorflow Serving API 설치