This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// 圓周率計算,以蒙地卡羅演算法處理 | |
function calPi($num){ | |
$c=0; | |
$s=0; | |
for($i=1;$i<=$num;$i++){ | |
if(sqrt(pow(rand(0,$num),2)+pow(rand(0,$num),2)) <= $num ){ | |
$c+=1; | |
$s+=1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="javascript"> | |
var Today=new Date(); | |
document.write(Today.getFullYear()+ "/" + (Today.getMonth()+1) + "/" + Today.getDate()); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>威力彩_php</title> | |
</head> | |
<body> | |
<h2> | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$str = '字串反轉'; | |
function rev($str, $encoding = 'utf-8'){ | |
$len = mb_strlen($str); | |
$result = ''; | |
for ($i = $len-1; $i>=0; $i--){ | |
$result.= mb_substr($str,$i,1,$encoding); | |
} | |
return $result; | |
} | |
echo rev($str); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-05-15T15:14:07.238Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"version":1,"resource":"file:///d%3A/neweb/lc-example/resources/views/charts.blade.php","entries":[{"id":"HMul.php","timestamp":1664180179899},{"id":"V5gB.php","timestamp":1664180200840},{"id":"eKnp.php","timestamp":1664180216801},{"id":"adGX.php","timestamp":1664181370358},{"id":"rk8v.php","timestamp":1664181383504},{"id":"DXBX.php","timestamp":1664181800697},{"id":"qtni.php","timestamp":1664185617554},{"id":"YTCA.php","source":"undoRedo.source","timestamp":1664185625072},{"id":"mRM2.php","timestamp":1664185639307}]} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.