小编PNG*_*PNG的帖子

PHP每月EMI计算脚本

我想为每月EMI计算创建脚本。可以说我的产品价值是卢比。10000,利率= 12%,期限为3个月。为此如何计算EMI值?我尝试了一些配方?但是没有得到正确的价值。你能告诉我任何想法吗?提前致谢

工作:

<?php 
$AMOUNT=10000; 
$intrest=12; // 12 percentage 
$plan=3; // 3 months 
$EMI=($AMOUNT * (($intrest/100)*($plan))); echo $EMI; 
?>
Run Code Online (Sandbox Code Playgroud)

php

1
推荐指数
1
解决办法
1万
查看次数

PHP Store数组值

嗨,我正在使用maxmind minfraud.我得到了这样的结果:

ERR =; COUNTRYCODE = IN; ip_region = 25; ip_city =; ip_latitude = 10.0223; ip_longitude = 30.2433; highRiskCountry =无; queriesRemaining = 1075; cityPostalMatch =; shipCityPostalMatch =; ip_domain =; ip_countryName =; ip_continentCode = AS; ip_corporateProxy =无; shipForward = NA; riskScore = 0.20;预付=; minfraud_version = 1.3

在这里,我想返回数组值.

<?php

function fraudQuery($ip, $country_code, $state, $city, $area_code, $mail_domain,$address)
{
 $d = file_get_contents("https://minfraud.maxmind.com/app/ccv2r?license_key=".IP_LOOKUP_KEY."&i=$ip&country=$country_code&city=$city&postal=$area_code&domain=$mail_domain&shipAddr=$address&shipCity=$city&shipRegion=$state&shipPostal=$area_code&shipCountry=$country_code");

 return array('Errors' =>err,  'IpCountryCode' => countryCode, 'IpCountry' => ip_countryName, 'IpRegionCode' => ip_region, 'IpRegion' => ip_regionName, 'IpCity' => ip_city, 'IpHostName' => ip_domain, 'Score' …
Run Code Online (Sandbox Code Playgroud)

php arrays function output

-1
推荐指数
1
解决办法
74
查看次数

标签 统计

php ×2

arrays ×1

function ×1

output ×1