arrays - PHP Show Differences -


मेरे पास दो स्ट्रिंग हैं:

  $ stringA = "1,2,3,4 "; $ StringB = "1,2,4,5";  

मैं $ stringB से मान चुनना चाहता हूं जो कि $ stringA में नहीं हैं।

कैसे क्या मैं ऐसा कर सकता हूं? विस्फोट और सरणी_एफ़िफ़ का एक संयोजन आपको वहां मिलना चाहिए।

Pre> array_diff (विस्फोट (',', $ stringB), विस्फोट (',', $ stringA));


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -