php 根据要求得到字符串的反序
<?php
/**
* 根据要求得到字符串的反序
*/
$s = ‘abcdefghijklmnopq’;
function Reverse_order($str,$start = null,$end = null)
{
$string = ”;
$string1 = ”;
$string2 = ”;
if ($start === null or $end === null)
{
for ($i = 0; ($char = $str{$i}) !== ”;$i++)
{
$string = $char.$string;
}
//var_dump($string);
}
if ((!is_int($start) or !is_int($end)) and $start !== null and $end !== null) //将用户输入为数字字符串转化为整型
{
//如果是字母或者汉字转化后$start $end 都为0
$start = (int)($start);
$end = (int)($end);
if ($start < 0)
{
trigger_error("起始值不能小于0",256);
return false;
}
}
if (is_int($start) and is_int($end))
{
for ($j = 0;$j < $start;$j++)
{
$string1 .= $str{$j};
}
for ($i = $start;$i < $end;$i++)
{
$string = $str{$i}.$string;
}
for ($k = $end; ($char = $str{$k}) !== ”; $k++)
{
$string2 .= $str{$k};
}
}
/*if (!is_int($start ) or !is_int($end))
{
trigger_error("请输入数字",512);
return false;
}*/
return $string1.$string.$string2;
}
$start = 0;
var_dump(
Reverse_order($s,$start,10),
Reverse_order($s,5,15),
Reverse_order($s,’10’,’15’),
//Reverse_order($s,’-5′,’15’), //为负数的字符串转化后是负数
Reverse_order($s,’df’,’sd’),
Reverse_order($s,’的’,’地方’), //不是为数字的字符串转化为整型后的是指都为零
Reverse_order($s)
);
作者:k7gxn56
波比源码 » php 根据要求得到字符串的反序
cheap levaquin levofloxacin sale
order avodart pill purchase zofran pills ondansetron 8mg cost
aldactone 100mg tablet diflucan 200mg tablet diflucan tablet
cost acillin buy cephalexin 125mg generic erythromycin 500mg cost
sildenafil 100mg cost buy tamoxifen 20mg sale robaxin over the counter
buy sildenafil 100mg sale buy sildenafil estrace order
lamictal 200mg uk mebendazole 100mg without prescription buy tretinoin cream without prescription
tadalafil buy online tadalafil online order order diclofenac 50mg generic
cialis tablets canadian pharmacy cialis sildenafil over counter
anastrozole 1mg generic clarithromycin canada order sildenafil 100mg online
order prednisone 40mg online cheap sildenafil 100mg sale viagra overnight shipping usa
cialis 5mg ohne rezept sildenafil 50mg kaufen sildenafil 100mg kaufen ohne rezept
order accutane 10mg without prescription azithromycin buy online ivermectin syrup
buy generic modafinil Cialis in usa diamox 250 mg cost
doxycycline online clomid pill lasix 40mg without prescription
terazosin canada order actos without prescription azulfidine 500mg sale
alendronate order online fosamax 70mg for sale famotidine 40mg usa
prograf 5mg for sale labetalol online order urso 300mg online cheap
molnunat 200 mg us lansoprazole 15mg drug order prevacid 30mg for sale
buy sertraline 100mg for sale order lexapro 10mg online viagra tablets
order generic imuran 100 mcg real viagra sites order sildenafil 50mg generic
cheap cialis for sale cialis 40mg usa viagra 50mg uk
tadalafil over counter cheap tadalafil sale cheap symmetrel
naltrexone usa purchase revia pills order abilify 30mg online
buy avlosulfon 100mg pills fexofenadine pills perindopril 8mg without prescription
order provera online cheap medroxyprogesterone 10mg buy periactin pills
buy generic accutane 20mg generic isotretinoin generic prednisone
buy piracetam 800mg for sale nootropil oral pfizer viagra
purchase zithromax azithromycin 500mg cost order neurontin 100mg pill
buy cialis 5mg online buy cialis 5mg without prescription viagra tablets
order tadalafil 10mg online cialis 5mg brand clomipramine pills
sporanox us buy progesterone 200mg for sale buy tinidazole 300mg online cheap
order glycomet 500mg sale buy lipitor 10mg for sale tadalafil 10mg brand
buy zyprexa 10mg zyprexa 10mg price generic diovan 80mg
clozapine over the counter buy combivent 100 mcg order dexamethasone 0,5 mg online
order linezolid pills play casino slots real money games
generic omeprazole 10mg prilosec 10mg pill world poker online
oral metoprolol 50mg metoprolol 100mg cost buy levitra online
cheap essays online slots free free roulette online
order research paper online sildenafil 25 mg sildenafil next day
order clomid 50mg without prescription purchase clomid roulette casino
order aristocort 4mg generic triamcinolone 4mg usa buy desloratadine
priligy 60mg tablet purchase levothyroxine without prescription purchase synthroid online cheap
buy cialis for sale order sildenafil 50mg online cheap sildenafil 50mg cheap
buy xenical 60mg without prescription diltiazem oral acyclovir 800mg brand
buy allopurinol 100mg online cheap order ezetimibe zetia 10mg cheap
brand methotrexate reglan 10mg drug reglan 10mg pills
motilium 10mg over the counter order sumycin 500mg online purchase cyclobenzaprine sale
buy baclofen 10mg generic zanaflex brand toradol 10mg over the counter
order generic imitrex 50mg buy levaquin 250mg generic generic avodart 0.5mg
colchicine 0.5mg price play slots slots games
blackjack online for real money free games poker online quick hits free online slots
buy flomax for sale spironolactone drug spironolactone 25mg sale
order metronidazole generic buy bactrim 960mg generic order bactrim pills
buy diflucan generic viagra on line order viagra 100mg pills
cephalexin 500mg oral buy erythromycin 250mg pill purchase erythromycin for sale
tadalafil 40mg us sildenafil 50mg for sale sildenafil 150mg price
viagra 150mg oral sildenafil 50mg order cialis 10mg online
research paper assistance i need help with my research paper ivermectin 12 mg for people
sildalis sale sildenafil 100mg usa order lamictal 50mg pill
poker online best buy provigil generic purchase modafinil without prescription
retin cream generic buy tadalafil 20mg avanafil sale
tadalafil generic buy generic voltaren 50mg indocin 75mg over the counter
buy terbinafine without prescription order lamisil generic generic amoxicillin 500mg
naprosyn 250mg canada naproxen 500mg price order generic prevacid
order biaxin without prescription buy biaxin without prescription antivert 25mg cost
order proventil pills buy protonix sale cipro 500mg oral
tiotropium bromide 9mcg us buy tiotropium bromide 9mcg without prescription hytrin online buy
buy actos 15mg without prescription buy viagra sale viagra overnight shipping usa
tadalafil tablet free samples of ed pills buy cialis tablets
buy generic cialis 5mg Buy now cialis casino online slots
ivermectin 9 mg tablet avlosulfon for sale avlosulfon online order
us blackjack online online casino games real money online blackjack live dealer
order altace 5mg order amaryl 1mg generic purchase arcoxia generic
generic doxycycline albuterol without prescription order cleocin 150mg pill
mesalamine 400mg ca azelastine 10 ml ca order irbesartan 150mg without prescription
temovate medication buy buspirone 5mg sale purchase amiodarone online cheap
order benicar sale calan 240mg usa depakote 250mg uk
order diamox 250 mg sale order diamox without prescription buy azathioprine 50mg pills
buy generic lanoxin 250 mg digoxin 250 mg generic order molnupiravir 200mg sale
brand pamelor purchase pamelor online cheap purchase paxil without prescription
pepcid without prescription buy mirtazapine 30mg sale mirtazapine tablet
order requip 2mg pill buy trandate online cheap order labetalol 100mg pill
tadalafil online plavix 75mg usa order trimox 250mg pills
buy tricor without prescription order tricor 200mg generic levitra or viagra
tadalafil 20mg cost Cialis for order viagra sildenafil 100mg
purchase minocycline sale neurontin for sale order terazosin online cheap
order generic glycomet buy verapamil 120mg online brand nolvadex
prednisone 5mg oral buy amoxil generic order amoxil 500mg sale
buy isotretinoin 10mg pill buy accutane 20mg generic order zithromax sale
ventolin buy online buy ventolin augmentin sale
buy generic provigil 200mg order zestril generic order lopressor without prescription
avodart brand purchase cephalexin online cheap brand xenical 60mg
azathioprine 25mg canada order naprosyn 250mg pill buy generic naprosyn 500mg