<?php
$inputStr = <<<'EOT'
1.You install Microsoft Dynamics CRM on-premises.
The Microsoft Dynamics CRM environment must have a Uniform Resource Locator (URL) that is different from the default URL for Microsoft Dynamics CRM.
Which two actions should you perform? Each correct answer presents a complete solution.
A.Before you install Microsoft Dynamics CRM.
B.create a new Microsoft Dynamics CRM website.
C.select the default server website.After the installation is.
D.Install Microsoft Dynamics CRM and select.
Answer: A, B
2.You are a system administrator for Microsoft Dynamics CRM Online.
You need to provision a user.
Which two steps should you perform? Each correct answer presents part of the solution. A.Add the user in the Microsoft Online Services Portal.
B.Configure the user with Read access mode.
C.Enable the user record in Microsoft Dynamics CRM Online.
D.Assign a Microsoft Dynamics CRM Online license to the user.
Answer: A, D
Ref: http://technet.microsoft.com/en-us/library/jj191623(v=crm.6)
3.You install Microsoft Dynamics CRM on-premises.
The installation fails and you receive an installation error.
You need to access the installation log files to view the details about the error.
What should you do?
A.Query the Microsoft Dynamics CRM database and view the log table.
B.View the installation log files in the folder <SystemDrive>\Program Files\Microsoft Dynamics CRM\Logs.
C.View the installation log files in the folder <SysremDnVe>:\Users\<L/serno/ne>\AppData\Roaming\Microsoft\MSCRM\Logs.
D.View the installation log files by opening the Event Viewer.
Answer: C
EOT;
function verarbeiteFrage ($nummer, $frage, $text) {
preg_match(
$musterAntwortmöglichkeiten ,
$text,
$antwortmöglichkeiten
);
preg_match(
$musterAntwort ,
$text,
$antwort
);
return array(
'frageNummer' => $nummer,
'frage' => $frage,
'antwortmöglichkeiten' => $antwortmöglichkeiten,
'antwort' => $antwort
);
}
// Reguläre Ausdrücke
$musterFragen = '/^(?<frageNum>\d+\.)(.+?)(?=A\.)/ms';
$musterAntwortmöglichkeiten = '((?:^[A-Z]\..+?)(?=^[A-Z]\.|Answer: ))/ms';
$musterAntwort = '/^(Answer: .+)$/m';
// Verarbeite Eingabetext
$fragen = array();
$suchergebnisse = preg_split($musterFragen, trim($inputStr), NULL, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
while (!empty($suchergebnisse)) {
$frageNummer = array_shift($suchergebnisse);
$frageText = array_shift($suchergebnisse);
$antwortTextAbschnitt = array_shift($suchergebnisse);
$fragen[] = verarbeiteFrage($frageNummer, $frageText, $antwortTextAbschnitt);
}
var_dump($fragen);
Deprecated: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /in/Xgml2 on line 60
Warning: Undefined variable $musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 32
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 32
Warning: Undefined variable $musterAntwort in /in/Xgml2 on line 39
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 38
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 38
Warning: Undefined variable $musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 32
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 32
Warning: Undefined variable $musterAntwort in /in/Xgml2 on line 39
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 38
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 38
Warning: Undefined variable $musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 32
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 32
Warning: Undefined variable $musterAntwort in /in/Xgml2 on line 39
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 38
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 38
array(3) {
[0]=>
array(4) {
["frageNummer"]=>
string(2) "1."
["frage"]=>
string(285) "You install Microsoft Dynamics CRM on-premises.
The Microsoft Dynamics CRM environment must have a Uniform Resource Locator (URL) that is different from the default URL for Microsoft Dynamics CRM.
Which two actions should you perform? Each correct answer presents a complete solution.
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[1]=>
array(4) {
["frageNummer"]=>
string(2) "2."
["frage"]=>
string(183) "You are a system administrator for Microsoft Dynamics CRM Online.
You need to provision a user.
Which two steps should you perform? Each correct answer presents part of the solution. "
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[2]=>
array(4) {
["frageNummer"]=>
string(2) "3."
["frage"]=>
string(213) "You install Microsoft Dynamics CRM on-premises.
The installation fails and you receive an installation error.
You need to access the installation log files to view the details about the error.
What should you do?
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
}
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Deprecated: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /in/Xgml2 on line 60
Warning: Undefined variable $musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 32
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 32
Warning: Undefined variable $musterAntwort in /in/Xgml2 on line 39
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 38
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 38
Warning: Undefined variable $musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 32
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 32
Warning: Undefined variable $musterAntwort in /in/Xgml2 on line 39
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 38
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 38
Warning: Undefined variable $musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 32
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 32
Warning: Undefined variable $musterAntwort in /in/Xgml2 on line 39
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 38
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 38
array(3) {
[0]=>
array(4) {
["frageNummer"]=>
string(2) "1."
["frage"]=>
string(285) "You install Microsoft Dynamics CRM on-premises.
The Microsoft Dynamics CRM environment must have a Uniform Resource Locator (URL) that is different from the default URL for Microsoft Dynamics CRM.
Which two actions should you perform? Each correct answer presents a complete solution.
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[1]=>
array(4) {
["frageNummer"]=>
string(2) "2."
["frage"]=>
string(183) "You are a system administrator for Microsoft Dynamics CRM Online.
You need to provision a user.
Which two steps should you perform? Each correct answer presents part of the solution. "
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[2]=>
array(4) {
["frageNummer"]=>
string(2) "3."
["frage"]=>
string(213) "You install Microsoft Dynamics CRM on-premises.
The installation fails and you receive an installation error.
You need to access the installation log files to view the details about the error.
What should you do?
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
}
Output for 8.1.0 - 8.1.28
Deprecated: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /in/Xgml2 on line 60
Warning: Undefined variable $musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 35
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35
Warning: Undefined variable $musterAntwort in /in/Xgml2 on line 39
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 41
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41
Warning: Undefined variable $musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 35
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35
Warning: Undefined variable $musterAntwort in /in/Xgml2 on line 39
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 41
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41
Warning: Undefined variable $musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 35
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35
Warning: Undefined variable $musterAntwort in /in/Xgml2 on line 39
Deprecated: preg_match(): Passing null to parameter #1 ($pattern) of type string is deprecated in /in/Xgml2 on line 41
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41
array(3) {
[0]=>
array(4) {
["frageNummer"]=>
string(2) "1."
["frage"]=>
string(285) "You install Microsoft Dynamics CRM on-premises.
The Microsoft Dynamics CRM environment must have a Uniform Resource Locator (URL) that is different from the default URL for Microsoft Dynamics CRM.
Which two actions should you perform? Each correct answer presents a complete solution.
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[1]=>
array(4) {
["frageNummer"]=>
string(2) "2."
["frage"]=>
string(183) "You are a system administrator for Microsoft Dynamics CRM Online.
You need to provision a user.
Which two steps should you perform? Each correct answer presents part of the solution. "
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[2]=>
array(4) {
["frageNummer"]=>
string(2) "3."
["frage"]=>
string(213) "You install Microsoft Dynamics CRM on-premises.
The installation fails and you receive an installation error.
You need to access the installation log files to view the details about the error.
What should you do?
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
}
Output for 8.0.0 - 8.0.30
Warning: Undefined variable $musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35
Warning: Undefined variable $musterAntwort in /in/Xgml2 on line 39
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41
Warning: Undefined variable $musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35
Warning: Undefined variable $musterAntwort in /in/Xgml2 on line 39
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41
Warning: Undefined variable $musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35
Warning: Undefined variable $musterAntwort in /in/Xgml2 on line 39
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41
array(3) {
[0]=>
array(4) {
["frageNummer"]=>
string(2) "1."
["frage"]=>
string(285) "You install Microsoft Dynamics CRM on-premises.
The Microsoft Dynamics CRM environment must have a Uniform Resource Locator (URL) that is different from the default URL for Microsoft Dynamics CRM.
Which two actions should you perform? Each correct answer presents a complete solution.
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[1]=>
array(4) {
["frageNummer"]=>
string(2) "2."
["frage"]=>
string(183) "You are a system administrator for Microsoft Dynamics CRM Online.
You need to provision a user.
Which two steps should you perform? Each correct answer presents part of the solution. "
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[2]=>
array(4) {
["frageNummer"]=>
string(2) "3."
["frage"]=>
string(213) "You install Microsoft Dynamics CRM on-premises.
The installation fails and you receive an installation error.
You need to access the installation log files to view the details about the error.
What should you do?
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
}
Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35
Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 39
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41
Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35
Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 39
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41
Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35
Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 39
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41
array(3) {
[0]=>
array(4) {
["frageNummer"]=>
string(2) "1."
["frage"]=>
string(285) "You install Microsoft Dynamics CRM on-premises.
The Microsoft Dynamics CRM environment must have a Uniform Resource Locator (URL) that is different from the default URL for Microsoft Dynamics CRM.
Which two actions should you perform? Each correct answer presents a complete solution.
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[1]=>
array(4) {
["frageNummer"]=>
string(2) "2."
["frage"]=>
string(183) "You are a system administrator for Microsoft Dynamics CRM Online.
You need to provision a user.
Which two steps should you perform? Each correct answer presents part of the solution. "
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[2]=>
array(4) {
["frageNummer"]=>
string(2) "3."
["frage"]=>
string(213) "You install Microsoft Dynamics CRM on-premises.
The installation fails and you receive an installation error.
You need to access the installation log files to view the details about the error.
What should you do?
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
}
Output for 7.3.32 - 7.3.33
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 35
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 41
array(3) {
[0]=>
array(4) {
["frageNummer"]=>
string(2) "1."
["frage"]=>
string(285) "You install Microsoft Dynamics CRM on-premises.
The Microsoft Dynamics CRM environment must have a Uniform Resource Locator (URL) that is different from the default URL for Microsoft Dynamics CRM.
Which two actions should you perform? Each correct answer presents a complete solution.
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[1]=>
array(4) {
["frageNummer"]=>
string(2) "2."
["frage"]=>
string(183) "You are a system administrator for Microsoft Dynamics CRM Online.
You need to provision a user.
Which two steps should you perform? Each correct answer presents part of the solution. "
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[2]=>
array(4) {
["frageNummer"]=>
string(2) "3."
["frage"]=>
string(213) "You install Microsoft Dynamics CRM on-premises.
The installation fails and you receive an installation error.
You need to access the installation log files to view the details about the error.
What should you do?
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
}
Output for 7.0.0 - 7.0.6, 7.1.0
Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 32
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 32
Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 38
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 38
Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 32
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 32
Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 38
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 38
Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 32
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 32
Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 38
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 38
array(3) {
[0]=>
array(4) {
["frageNummer"]=>
string(2) "1."
["frage"]=>
string(285) "You install Microsoft Dynamics CRM on-premises.
The Microsoft Dynamics CRM environment must have a Uniform Resource Locator (URL) that is different from the default URL for Microsoft Dynamics CRM.
Which two actions should you perform? Each correct answer presents a complete solution.
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[1]=>
array(4) {
["frageNummer"]=>
string(2) "2."
["frage"]=>
string(183) "You are a system administrator for Microsoft Dynamics CRM Online.
You need to provision a user.
Which two steps should you perform? Each correct answer presents part of the solution. "
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[2]=>
array(4) {
["frageNummer"]=>
string(2) "3."
["frage"]=>
string(213) "You install Microsoft Dynamics CRM on-premises.
The installation fails and you receive an installation error.
You need to access the installation log files to view the details about the error.
What should you do?
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
}
Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 36
Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 39
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 42
Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 36
Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 39
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 42
Notice: Undefined variable: musterAntwortmöglichkeiten in /in/Xgml2 on line 33
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 36
Notice: Undefined variable: musterAntwort in /in/Xgml2 on line 39
Warning: preg_match(): Empty regular expression in /in/Xgml2 on line 42
array(3) {
[0]=>
array(4) {
["frageNummer"]=>
string(2) "1."
["frage"]=>
string(285) "You install Microsoft Dynamics CRM on-premises.
The Microsoft Dynamics CRM environment must have a Uniform Resource Locator (URL) that is different from the default URL for Microsoft Dynamics CRM.
Which two actions should you perform? Each correct answer presents a complete solution.
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[1]=>
array(4) {
["frageNummer"]=>
string(2) "2."
["frage"]=>
string(183) "You are a system administrator for Microsoft Dynamics CRM Online.
You need to provision a user.
Which two steps should you perform? Each correct answer presents part of the solution. "
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
[2]=>
array(4) {
["frageNummer"]=>
string(2) "3."
["frage"]=>
string(213) "You install Microsoft Dynamics CRM on-premises.
The installation fails and you receive an installation error.
You need to access the installation log files to view the details about the error.
What should you do?
"
["antwortmöglichkeiten"]=>
NULL
["antwort"]=>
NULL
}
}