• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP numerotexto函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中numerotexto函数的典型用法代码示例。如果您正苦于以下问题:PHP numerotexto函数的具体用法?PHP numerotexto怎么用?PHP numerotexto使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了numerotexto函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: number_format

        $signo = '-';
    } else {
        $signo = '';
    }
    //echo '<br>'.$myrow['precioVenta']*$myrow['cantidad'];
    $pdf->Cell(0, 0, $signo . '$ ' . number_format($myrow['precioVenta'] * $myrow['cantidad'], 2), 0, 0, R);
    //************cierra pruebas
    $pdf->Ln(2);
    //salto de linea
    //$pdf->Ln(1); //salto de linea
}
//cierra while
$TOTAL = $cargos[0] + $ivaCargos[0] - ($abonos[0] + $ivaAbonos[0]);
$centavos = strstr($TOTAL, '.');
$centavos = substr($centavos, '1');
$resultado = numerotexto($TOTAL);
$totalCaracteres = strlen($centavos);
if ($totalCaracteres == '1') {
    $centavos = $centavos . '0';
}
if (!$centavos) {
    $centavos = '00';
}
$formula = 'pesos ' . $centavos . '/100 M.N.';
$formula = trim($formula);
$Y = 120;
//linea de abajo
if ($registros < 9) {
    $pdf->Line(2, 117, 199, 117);
    //**********************************************SIGNATURE******
    if ($myrow311['seguro']) {
开发者ID:rusli-nasir,项目名称:hospitalPhp,代码行数:31,代码来源:imprimirCargosInternos.php


示例2: numerotexto

//************cierra pruebas


$pdf->Ln(2); //salto de linea
//$pdf->Ln(1); //salto de linea

} //cierra while


$TOTAL=$cargos[0]+$ivaCargos[0];
$sandra=$TOTAL-$totalDescuento[0]-$totalBeneficencia[0]-$totalCortesia[0];
$centavos=strstr($sandra,'.');
$centavos=substr($centavos,'1');
//**********
$resultado= numerotexto($sandra); 
$totalCaracteres=strlen($centavos);
if($totalCaracteres=='1'){
$centavos=$centavos.'0';
}
if(!$centavos){
$centavos='00';
}

$formula= 'pesos '.$centavos.'/100 M.N.';
$formula=trim($formula);

$Y=120;


//linea de abajo
开发者ID:rusli-nasir,项目名称:hospitalPhp,代码行数:30,代码来源:reciboOFT.php


示例3: strstr

                $descripcion = 'Tipo de Pago: ' . $myrow['tipoPago'];
            }
        }
    }
    $pdf->SetX('7');
    $pdf->SetFont('Arial', '', 10);
    $pdf->Cell(0, 0, $myrow['descripcionArticulo'], 0, 0, L);
    //************cierra pruebas
    $pdf->Ln(2);
    //salto de linea
    //$pdf->Ln(1); //salto de linea
}
//cierra while
$centavos = strstr($TOTAL[0], '.');
$centavos = substr($centavos, '1');
$resultado = numerotexto($TOTAL[0]);
$totalCaracteres = strlen($centavos);
if ($totalCaracteres == '1') {
    $centavos = $centavos . '0';
}
if (!$centavos) {
    $centavos = '00';
}
$formula = 'pesos ' . $centavos . '/100 M.N.';
$formula = trim($formula);
$Y = 120;
//linea de abajo
$pdf->Line(2, 115, 200, 115);
$pdf->SetFont('Arial', '', 10);
$pdf->SetY($Y);
$pdf->Cell(0, 0, "Subtotal: " . "\$" . number_format($TOTAL[0], 2), 0, 0, R);
开发者ID:rusli-nasir,项目名称:hospitalPhp,代码行数:31,代码来源:imprimirPagosCxC.php


示例4: mysql_db_query

    $result40 = mysql_db_query($basedatos, $sSQL40);
    $myrow40 = mysql_fetch_array($result40);
    $sSQL40a = "\r\n        SELECT\r\ndescripcion\r\nFROM\r\nalmacenes\r\nWHERE\r\nalmacen='" . $myrow['almacenDestino'] . "'\r\n\r\n";
    $result40a = mysql_db_query($basedatos, $sSQL40a);
    $myrow40a = mysql_fetch_array($result40a);
    $pdf->SetX('7');
    $pdf->Cell(0, 0, $myrow40['descripcion'], 0, 0, L);
    $pdf->Ln(5);
    //salto de linea
}
$pdf->Ln(2);
//salto de linea
//$pdf->Ln(1); //salto de linea
$centavos = strstr($TOTAL[0], '.');
$centavos = substr($centavos, '1');
$resultado = numerotexto($TOTAL[0] + $sumaIVA[0]);
$totalCaracteres = strlen($centavos);
if ($totalCaracteres == '1') {
    $centavos = $centavos . '0';
}
if (!$centavos) {
    $centavos = '00';
}
$formula = 'pesos ' . $centavos . '/100 M.N.';
$formula = trim($formula);
$Y = 120;
//linea de abajo
$pdf->Line(2, 115, 200, 115);
$pdf->SetFont('Arial', '', 10);
$pdf->SetY($Y);
$pdf->Cell(0, 0, "Subtotal: " . "\$" . number_format($TOTAL[0], 2), 0, 0, R);
开发者ID:rusli-nasir,项目名称:hospitalPhp,代码行数:31,代码来源:imprimirReciboPaquetes.php



注:本文中的numerotexto函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP numlin_query函数代码示例发布时间:2022-05-15
下一篇:
PHP numericCheck函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap