array_diff_assoc() Is there a small program on WeChat that can create questions? Write questions on your own and send them to others for exams


<?php
    //array_diff_assoc() 函数用于比较两个(或更多个)数组的键名和键值 ,并返回差集。
    //把二个数字之间不相同的地方留下
    $a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow");
    $a2=array("a"=>"red","b"=>"green","c"=>"blue");

    $result=array_diff_assoc($a1,$a2);
    print_r($result);
    //Array ( [d] => yellow )
?>

A small program that allows you to write questions on WeChat, you can write your own questions and send them to others for the test.

The advantages of the WeChat applet online examination system:
 1. Low cost. The cost of network-based electronic question bank resources is much lower than the high cost of paper printing. The problem of insufficient copies of paper resources can be effectively solved.
Second, there is no loss. The same test for multiple people does not take up any space and consume paper test questions.
Third, it is quick to circulate, the same test question can be used by multiple readers at the same time, and it is not limited by the amount and frequency of use.
Fourth, update the question bank in time.
Fifth, it is a new model that meets the needs of readers for personalized services and realizes paperless examinations.
Sixth, it is not restricted by time and space, one-stop question bank centralized service. Use electronic equipment to use the system anytime and anywhere, avoiding running around.

(Sweep through WeChat to enter the answering mini-program experience)

     Everyone can make test questions through this small program system, and then give others to answer the questions (self, colleagues, students or customers can). 

     First of all, open the test king applet for answering questions and click I want to make a question. Go to the question interface. As shown below.   

     To give an exam, it needs to be divided into two steps. One is to add test papers, and the other is to add test questions.   

     There is no order for adding test papers and adding test questions. You can start either first. Click to add test questions, you can ask questions. Click Add Test Paper, and you can get the test paper. In Adding Test Paper, you can add and set up your test information, such as the name of the test paper, the start time and end time of the test, and whether to set up a red envelope, so that others can receive a red envelope for answering questions. After adding the set test paper, you can find your test paper in your test paper list, click Edit, and then click Add Test Questions, you can add the test questions you have added to your test paper.

Guess you like

Origin blog.csdn.net/junword/article/details/106015339