Answers for "show specific char i php"

PHP
2

get number of chars ina string php

$name = "Perú"; // With accent mark
echo strlen($name); // Display 5, because "ú" require 2 bytes.

$name = "Peru"; // Without accent mark
echo strlen($name); // Display 4
Posted by: Guest on May-13-2020
1

print only some characters of a string in php

substr(string,start,length)
Posted by: Guest on July-11-2020

Code answers related to "show specific char i php"

Browse Popular Code Answers by Language