第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

函數(shù)的結(jié)果怎么賦值給變量啊

函數(shù)的結(jié)果怎么賦值給變量啊

PHP
幕布斯6054654 2019-03-12 14:23:19
<?php $name = 'stefen'; $tel = '10795856'; $motto = 'If you shed tears when you miss the sun,then you would miss the stars'; function totalLen(...$string){ //=print_r($string); foreach ($string as $content) { echo strlen($content).','; } } $arrNum = totalLen($name,$tel,$motto); //totalLen($name,$tel,$motto)會(huì)得到6,8,69,但是貌似不能賦值給$arrNum echo array_sum(array($arrNum)); 我想實(shí)現(xiàn)的功能是,無(wú)論有多少變量傳入函數(shù),都能自動(dòng)計(jì)算出所有字符的長(zhǎng)度的和,但是現(xiàn)在沒辦法把得到的結(jié)果賦值給變量,求指教
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 709 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)