prepare a php function for search numbers and compare

i have a variable that have a 4 digit number, let's say 3577.

i have a multi dimensional array that have "numbers" and "values".

let's say

$variable = 3577;

$matches_array = array (

1 => array(

'num' => '8',

'value' => 'kuku'


2 => array(

'num' => '37',

'value' => 'bobo'


3 => array(

'num' => '357',

'value' => 'ruru'


4 => array(

'num' => '77',

'value' => 'nono'


5 => array(

'num' => '33',

'value' => 'ar'



the function will need to go over each of the numbers of the array, and check if the numbers exist in the variable i have (the 4 digit number).

in the example above, the function will need to check if the 8 number exist in 3577. the number does not exist, so it moves on.

then it searches 37. 3 and 7 exists in 3577, so it needs to echo the number with the value.

then it goes to 357, it checks if 3 exist, then 5 then 7, it exists, so it echo the number with the value and moves on to the next array key.

so now it searches 77, it checks if there is 7 and it exists, now it checks if there is another 7, and it exists (it does not repeat the same number to match), since there are two 7 number (order does not important), it echo the number.

now it gets to the last number which is 33, there is 3 in the 3577, but there isn't another 3, so it counts as if it didn't found the number and finishes.

Beceriler: PHP, Yazılım Mimarisi

Daha fazlasını gör: php function search facebook, php mysql search function, free php mysql search result function, php listing search function, create function search google php, php function compare time, php advanced search function, php page search function, designing php site search function fields, php create search function, php website search function free, php simple search function, php function compare, php form search function

İşveren Hakkında:
( 21 değerlendirme ) Petah Tiqva, Israel

Proje NO: #16275759



Hi, i m serious freelancer and i believe i can help you. I've done hundreds of projects like this one, and this can be achieved with regular expressions and function will work exactly as you specified. If you are inter Daha Fazla

%selectedBids___i_period_sub_7% gün içinde 10%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(166 Değerlendirme)

Bu iş için 15 freelancer ortalamada $35 teklif veriyor


Hi, My name is Imran and I have been working as a HTML/CSS/PHP/Wordpress Developer, Designer and Coder for the last 8 years. About Your Project: -------------------------- I have read your project details and Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(151 Değerlendirme)
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(187 Değerlendirme)

A proposal has not yet been provided

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(29 Değerlendirme)

Hello, I can start on it [url removed, login to view] is easy job for [url removed, login to view] will be completed very quickly. What language should I use?PHP?

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(39 Değerlendirme)

Hello Sir, Your project interests me. I will be available to participate in its realization. for more information contact me zakariaa benslimane

in %bids___i_period_sub_35% gün içinde13%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(7 Değerlendirme)
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(8 Değerlendirme)

We are a team of professionals. We excel in designing websites. We assure you to maintain a positive business relation with you. Relevant Skills and Experience Hello Sir, I am Website Developer works with Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(6 Değerlendirme)

Hello there. I'm a programmer with academic background. No problem, you can get it done within 15 minutes.

in %bids___i_period_sub_35% gün içinde10%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(5 Değerlendirme)
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(3 Değerlendirme)
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)

Hello please visit our website:- [url removed, login to view] As per your post ,I have understood your requirement. We are team of 10 an expertise of Web Developing architecture and Web Designing. We are Microsoft Approved Partn Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)

I have more than 4 years experience in PHP programming. And well versed in android and in open-sources / Framework like Codeigniter , OpenCart, Wordpress and other Web solutions . My strengths are web developmen Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)

​​I don't just build websites, rather build your business by crafting visually stunning memorable experiences for web and interfaces. I design, manage and develop custom web apps that suit your need. I develop web and Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)

Over the last 2 years, I have developed a wide range of websites using HTML, PHP, Wordpress and MySQL including sites for startup companies and small businesses. My core competency lies in complete end-end management o Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)