Forum arrow_forward_ios Codding

Questions By
Monjoti Mondol
card_giftcard ₹0

question_answer php count variable values separated with comma

Hello everyone, Do anyone knows how with php count variable values separated with comma.

For example - 

$variable=("a,b,c,d,f");

How many letters are there in variable $variable seperated with comma?
.
The result should shows - 5 letters.
.
Can anyone knows how to do that, guys?
.
It will be lot helpful for me if someone tells me the soulution for this.
.
Thank you guys ...
06-04-2018, Total 2 Ans Best Answered , 29 views


check_circle_outline BEST ANSWER
Ok finally I got the solution for it ..

Here it is the solution

Suppose $fcoid is a variable.

Now, 

$fcoid = "a,b,m,c,f,d";

$fcoid_ex=explode(",", $fcoid);

$fcoid_c=count($fcoid_ex);

echo $fcoid_c;

//result = 6;
 

That's it ..hop it helps someone else..

Monjoti Mondol
06-04-2018

more_horiz Other Answers

Guys actually array and variable values can be count in the same ways ... here I got counting array also in the similar way check it out https://stackoverflow.com/questions/2458504/counting-comma-separated-values-in-php-how-to 
 

Monjoti Mondol
06-04-2018

Please lock LOGIN to Answer

announcement Recently Asked

question_answer


announcement Related Ques

question_answer
question_answer
question_answer
How many countries Twilio can send SMS?
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
question_answer
I want to register SENDER ID for my SNS SMS, on AWS.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
What is SKU in shiprocket? From where I can get it?
Ans(1) ₹0 check_circle_outline
question_answer
PHP SDK - Delete Object not working on s3 - error \
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
How much tables one Mysql database can have?
Ans(1) ₹0 check_circle_outline
question_answer
What is the amount of withdrawn in RazorPay?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
Need codes to send SMS using AWS SNS in PHP.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
Multiple database vs single database on mysql?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
Is this PMEGP Loan works Offline also?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
Can I create live straming videos using cloudfront?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
What is La Liga?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
html css center horizontal list, menu system
Ans(2) ₹0 check_circle_outline
question_answer
php count variable values separated with comma
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
How to properly get Pre Signed URL from s3 Bucket?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
How to get date of every after 30 days using PHP?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
How much is the Margin Money of PMEGP Loan fo ST?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
Which is the right time to get EDP Training?
Ans(1) ₹0 check_circle_outline
question_answer
What were the documents required for PMEGP Loan?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
multiple aws s3 bucket vs one aws s3 bucket?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
Linux repeated Keyword problems.. how to solve it?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
How to get the present full url using PHP
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
question_answer
PHP code to get the token of Shiprocket.
Ans(1) ₹0 check_circle_outline
question_answer
How to get the nested Array Data using PHP?
Ans(1) ₹0 check_circle_outline
question_answer

WelCome to the World of Digital Expression

Transform your Works into Digital and Makes your life more easier.

121

Total users

121

Active users

5

Active Earners

location_on BTR,Assam,INDIA
(Bodoland)
email [email protected]
call +91 8486866741
rss_feed

Copyright ©2019-20 mritunjoy.com,All Rights Reserved