App下载

demo_func_string_count_chars3 在线工具

demo_func_string_count_chars3 在线工具

<HTML>
<HEAD></HEAD>
<FONT FACE="'Courier New',Verdana, Arial, Helvetica" SIZE=2>
<!DOCTYPE html>
<html>
<body>

<p>Mode 1 will return an array with the ASCII value as key and how 
many times it occurred as value (e.g. in this example, the ASCII value for the letter "l" is 108, and it occurs three times.<?php
$str = "Hello World!";
print_r(count_chars($str,1));
?>
运行结果