logo

  • Hỏi Đáp
  • Kiến Thức
  • Sức Khỏe
  • Tử Vi
  • Công Nghệ
No Result
View All Result
logo
No Result
View All Result
Trang chủ new get unique value of array php

NEW GET UNIQUE VALUE OF ARRAY PHP

by Admin _ May 09, 2022
Guys i have a very awkward situation here , i am not sure whether am i taking a right approach or not.. I am trying to match the values between 2 arrays và then running if else statement... Here"s goes what i am trying lớn do

$array1 = array("html","php","js","css");$array2 = array("php","python","html","java");what i want is lớn make a kiểm tra where the values of these 2 arrays matches lớn each other. Like php & html is common in both & also where it doesn"t match.Bạn đã xem: Php kiểm tra if two arrays contain same elements

Thanks


*

By "match", vì you merely mean that the variable is an element of both arrays, or vị you also require that they occupy the same position in each array?
*

It"s your need:

$result = array_intersect($array1, $array2);print_r($result);the result is:

Array( => html => php)

*

*


*

Thanks for contributing an answer khổng lồ Stack Overflow!

Please be sure to lớn answer the question. Provide details and share your research!

But avoid …

Asking for help, clarification, or responding khổng lồ other answers.Making statements based on opinion; back them up with references or personal experience.

Bạn đang xem: New get unique value of array php

To learn more, see our tips on writing great answers.

Xem thêm: Cảm Giác Nặng Bụng Dưới Khi Mang Thai, Những Vấn Đề Thường Gặp Khi Mang Thai

Post Your Answer Discard

By clicking “Post Your Answer”, you agree lớn our terms of service, privacy policy và cookie policy

Not the answer you're looking for? Browse other questions tagged php arrays or ask your own question.

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.


ShareTweet Linkedin Pinterest
Previous Post

Array match php

Next Post

Phpstorm


size register php


Fantastic blog (cms) in php with source code


Validate size php javascript


Http diendanlequydon com viewtopic php style 6


How to get localstorage value in php?


How khổng lồ install php 7


Sam và philip knight remix


sản xuất website bởi php


Newsletter


The most important automotive news and events of the day

We won"t spam you. Pinky swear.


Leave this field empty if you"re human:

Chuyên Mục


News Post


About


Chúng tôi tạo thành trang web nhằm mục đích đưa về kiến thức có lợi cho cùng đồng, các bài viết được sưu tầm từ không ít nguồn trên internet giúp mang về kiến thức khách quan giành riêng cho bạn


©2022 darkedeneurope.com.com - trang web WordPress vì mục tiêu cộng đồng

contact - giới thiệu - Nội Quy - bảo mật


No Result
View All Result
chuyên mục

© 2022 darkedeneurope.com.com - trang web WordPress vì mục đích cộng đồng.

Share Tweet Linkedin Pinterest
Previous Post

Datetime with string php

Next Post

Test curl php script hello world code example

CÙNG CHUYÊN MỤC

form register php

Form register php

09/04/2021
fantastic blog (cms) in php with source code

Fantastic blog (cms) in php with source code

28/04/2021
validate form php javascript

Validate form php javascript

28/04/2021
http diendanlequydon com viewtopic php style 6

Http diendanlequydon com viewtopic php style 6

28/04/2021
cách làm website bằng php

Cách làm website bằng php

25/05/2022
hướng dẫn cài đặt và sử dụng composer trên ubuntu 20

Hướng dẫn cài đặt và sử dụng composer trên ubuntu 20

25/05/2022
so sánh giờ trong php

So sánh giờ trong php

25/05/2022
hướng dẫn sử dụng chức năng

Hướng dẫn sử dụng chức năng "config php timezone"

24/05/2022

Newsletter

The most important automotive news and events of the day

We won't spam you. Pinky swear.

Chuyên Mục

  • Hỏi Đáp
  • Kiến Thức
  • Sức Khỏe
  • Tử Vi
  • Công Nghệ

News Post

  • Phần mềm lập trình vhdl

About

Chúng tôi tạo ra trang web nhằm mục đích mang lại kiến thức bổ ích cho cộng đồng, các bài viết được sưu tầm từ nhiều nguồn trên internet giúp mang lại kiến thức khách quan dành cho bạn

©2022 darkedeneurope.com - Website WordPress vì mục đích cộng đồng

Liên Hệ - Giới Thiệu - Nội Quy - Bảo Mật

No Result
View All Result
  • Trang chủ
  • Chuyên mục
    • Hỏi Đáp
    • Kiến Thức
    • Sức Khỏe
    • Tử Vi
    • Công Nghệ
  • Lưu trữ
  • Liên hệ

© 2022 darkedeneurope.com - Website WordPress vì mục đích cộng đồng.